【发布时间】:2012-11-08 12:49:12
【问题描述】:
每次我重新启动 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, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)")
请告诉我如何解决这个问题。
【问题讨论】:
-
这似乎属于服务器故障
-
如果 mysql 作为服务安装(大多数情况下),您可以使用
service mysqld restart或/etc/init.d/mysqld restart。我对 amazon/aws 或者 mysql-python 或者 bitnami 什么都不懂,但是你可以试试。 -
不是一个真正的编程问题,在 stackoverflow 上跑题了。尝试“chmod 0644 /opt/bitnami/mysql/my.cnf”并重新启动。如果它没有帮助 -> 服务器故障
-
@Martin 非常感谢您节省了我很多时间。它有效。
-
我将它添加为答案,然后您可以接受它,每个人都可以看到它是解决方案。
标签: mysql amazon-ec2 amazon-web-services mysql-python bitnami