文章详情

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

相关阅读 更多 +
排行榜 更多 +
步行僵尸2无限金币版

步行僵尸2无限金币版

体育竞技 下载
狐狸一号特殊任务无限金币版

狐狸一号特殊任务无限金币版

体育竞技 下载
忍者之雷复仇无限金币钻石版

忍者之雷复仇无限金币钻石版

体育竞技 下载