1

为了避免[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 #.

4

0 回答 0