13

MySQL サーバーを再起動するたびに

bitnami@xxx:/$ sudo opt/bitnami/ctlscript.sh start server

 

WWarning: World-writable config file '/opt/bitnami/mysql/my.cnf' is ignored
Warning: World-writable config file '/opt/bitnami/mysql/my.cnf' is ignored
121120 12:30:18 mysqld_safe Logging to '/opt/bitnami/mysql/data/mysqld.log'.
121120 12:30:18 mysqld_safe Starting mysqld daemon with databases from /opt/bitnami/mysql/data
121120 12:30:20 mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/ip-10-136-14-170.pid ended
/opt/bitnami/mysql/scripts/ctl.sh : mysql  could not be started

サーバーは次のエラーで応答します。

(2002、「ソケット '/tmp/mysql.sock' (2) を介してローカル MySQL サーバーに接続できません」)

この問題を解決するにはどうすればよいか教えてください。

4

1 に答える 1

34

mysql がサービスとしてインストールされている場合 (ほとんどの場合)、service mysqld restartまたは/etc/init.d/mysqld restart.

の代わりにstartstopまたはを使用することもできます。reloadrestart

于 2012-11-20T12:55:34.237 に答える