gpt4 book ai didi

mysql - 如何重启mysql服务器?

转载 作者:IT王子 更新时间:2023-10-29 00:38:25 26 4
gpt4 key购买 nike

每次我重新启动 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

您还可以使用startstopreload 而不是restart

关于mysql - 如何重启mysql服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13473440/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com