文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>mysql参数处理顺序

mysql参数处理顺序

时间:2009-08-09  来源:cenalulu

1. MySQL programs determine which options are given first by examining environment variables, then option files, and then the command line. If an option is specified multiple times, the last occurrence takes precedence. This means that environment variables have the lowest precedence and command-line options the highest.

2. On Unix, MySQL programs read startup options from the following files:

Filename

Purpose

/etc/my.cnf

Global options

DATADIR/my.cnf

Server-specific options

defaults-extra-file

The file specified with --defaults-extra-file=path, if any

~/.my.cnf

User-specific options


3. All MySQL programs that support option files handle the following command-line options:

  • --no-defaults

    Don't read any option files.

  • --print-defaults

    Print the program name and all options that it will get from option files.

  • --defaults-file=path_name

    Use only the given option file. path_name is the full pathname to the file.

  • --defaults-extra-file=path_name

    Read this option file after the global option file but before the user option file. path_name is the full pathname to the file.

相关阅读 更多 +
排行榜 更多 +
丧尸狩猎者免广告

丧尸狩猎者免广告

飞行射击 下载
英雄大逃杀免广告

英雄大逃杀免广告

飞行射击 下载
丧尸狩猎者内置mod菜单

丧尸狩猎者内置mod菜单

飞行射击 下载