6

私が再起動するたびに、MySQLサーバmysqlサーバを再起動するには?

[email protected]:/$ 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, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)")

私はこの問題を解決しなければならないものを私に教えてください。

+0

これはserverfaultに属しているようです –

+1

mysqlがサービスとしてインストールされている場合(ほとんどの場合)、 'service mysqld restart'または' /etc/init.d/mysqld restart'を実行することができます。 私はamazon/awsやmysql-pythonやbitnamiについて何も知らないが、試してみることができる。 – Martin

+1

実際にプログラミングの質問ではなく、stackoverflowのトピックをオフにします。 'chmod 0644 /opt/bitnami/mysql/my.cnf'を実行して再起動してください。それが助けなければ - > serverfault – Gryphius

答えて

21

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

restartの代わりにstart,stopまたはreloadを使用することもできます。

+1

ありがとう、それは役に立ちます。 –

+1

また、distro '/etc/init.d/mysql restart'(Debian 5.0.10)によっては、 – Deus777

関連する問題