MySQL Configuration path

Source: Internet
Author: User
Tags zend

1) about the configuration file path

Sometimes I find that although I try to modify some variables of the configuration file, it does not take effect. It turned out that the modified file was not a configuration file read by the MySQL server.

If you don't know the profile path currently used by MySQL, you can try this:

/usr/local/zend/mysql/bin/mysqld--verbose--help | Grep-a 1 ' Default options '

141020 17:34:05 [ERROR] Can ' t find messagefile '/usr/local/mysql/share/errmsg.sys '

141020 17:34:05 [Warning] Can ' t ' Create test File/usr/local/mysql/data/zhepamadeimac.lower-test

141020 17:34:05 [Warning] Can ' t ' Create test File/usr/local/mysql/data/zhepamadeimac.lower-test

/usr/local/zend/mysql/bin/mysqld:can ' t change dir to '/usr/local/mysql/data/' (errcode:2)

141020 17:34:05 [Note] Plugin ' federated ' is disabled.

/usr/local/zend/mysql/bin/mysqld:unknown Error 1146

141020 17:34:05 [ERROR] Can ' t open the Mysql.plugin table. Please run Mysql_upgrade to create it.

Default options is read from the following files in the given order:

/ETC/MY.CNF/ETC/MYSQL/MY.CNF/USR/LOCAL/MYSQL/ETC/MY.CNF ~/.my.cnf

MySQL Configuration path

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.