每当我重新启动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'连接到本地MySQL服务器(2)")
请告诉我应该如何解决这个问题。
service mysqld restart
或/etc/init.d/mysqld restart
。 我不知道amazon/aws或mysql-python或bitnami的任何内容,但您可以尝试。 - Martin