- 论坛徽章:
- 0
|
回复 #1 luwenju 的帖子
MYSQL_HOME is an environment variable containing the path to the directory in which the
server-specific my.cnf file resides. (This was DATADIR prior to MySQL version 5.0.3.)
If MYSQL_HOME is not set and you start the server using the mysqld_safe program, mysqld_safe
attempts to set MYSQL_HOME as follows:
* Let BASEDIR and DATADIR represent the pathnames of the MySQL base directory and
data directory, respectively.
* If there is a my.cnf file in DATADIR but not in BASEDIR, mysqld_safe sets MYSQL_HOME to
DATADIR.
* Otherwise, if MYSQL_HOME is not set and there is no my.cnf file in DATADIR, mysqld_safe
sets MYSQL_HOME to BASEDIR. |
|