Chinaunix首页 | 论坛 | 博客
  • 博客访问: 568819
  • 博文数量: 86
  • 博客积分: 2581
  • 博客等级: 少校
  • 技术积分: 793
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-05 20:09
文章分类

全部博文(86)

文章存档

2009年(86)

我的朋友

分类: Mysql/postgreSQL

2009-08-09 15:07:24

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.


阅读(1881) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~