我每次重启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)")
请告诉我,我必须做的解决这个问题。
这似乎是属于服务器故障 –
如果MySQL作为服务安装(大多数情况下),您可以执行'service mysqld restart'或'/etc/init.d/mysqld restart'。 我不知道任何亚马逊/ aws或mysql-python或bitnami,但你可以尝试。 – Martin
不是一个真正的编程问题,关于stackoverflow的话题。尝试'chmod 0644 /opt/bitnami/mysql/my.cnf'并重新启动。如果它没有帮助 - > serverfault – Gryphius