文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
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.

相关阅读 更多 +
排行榜 更多 +
安洁拉世界奇幻之旅手游下载

安洁拉世界奇幻之旅手游下载

模拟经营 下载
肌肉百分百手游下载

肌肉百分百手游下载

角色扮演 下载
美发沙龙模拟器手游下载

美发沙龙模拟器手游下载

模拟经营 下载