如何在`sudo / usr / local / mysql / bin / mysqld --defaults-file =" /etc/my.cnf"中正确添加选项; start`

时间:2014-12-03 04:13:48

标签: mysql mysql-cluster

要避免[ERROR] Can't read from messagefile '/usr/share/mysql/errmsg.sys'我需要[ERROR] Can't read from messagefile '/usr/share/mysql/errmsg.sys'。 但是sudo /usr/local/mysql/bin/mysqld --defaults-file="/etc/my.cnf"给了我[ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!。 我了解到我需要sudo /usr/local/mysql/bin/mysqld start来启动服务。但sudo /usr/local/mysql/bin/mysqld --defaults-file="/etc/my.cnf" start给出了与sudo /usr/local/mysql/bin/mysqld --defaults-file="/etc/my.cnf"相同的错误,sudo /usr/local/mysql/bin/mysqld start --defaults-file="/etc/my.cnf"sudo /usr/local/mysql/bin/mysqld start相同...所以我不知道该怎么办......

PS:在sudo /usr/local/mysql/bin/mysqld --verbose --help中,它提到--defaults-file=# Only read default options from the given file #.

0 个答案:

没有答案