简体   繁体   English

Mysql对/etc/mysql/my.cnf的更改不起作用

[英]Mysql Changes to /etc/mysql/my.cnf not working

I am facing a issue with mysql. 我面临MySQL问题。 I am a beginner. 我是初学者。

I installed mysql on Ubuntu. 我在Ubuntu上安装了mysql。
After installation when I ran sudo service mysql status 安装后当我运行sudo服务时mysql的状态
It showed that it had started. 它表明它已经开始。

Now since the bindaddress is 127.0.0.1, I changes it to 0.0.0.0 现在,由于bindaddress为127.0.0.1,因此将其更改为0.0.0.0
After making changes to /etc/mysql/my.cnf, when i save and restart the mysql by running the command: 对/etc/mysql/my.cnf进行更改后,当我通过运行以下命令保存并重新启动mysql时:
sudo service mysql restart sudo服务mysql重新启动
It hangs sometimes for a long time. 有时会挂很长时间。
Sometimes, it says that it has started the mysql server. 有时,它说它已经启动了mysql服务器。 However when I run 但是当我跑步时
ps -ef | ps -ef | grep mysql grep MySQL的
I cannot see mysqld running. 我看不到mysqld正在运行。

What do I need to include or make changes to? 我需要包含或更改哪些内容?

Can you check your log file in your mysql directory for more information? 您可以检查mysql目录中的日志文件以获取更多信息吗? It should be named "YOUR_MACHINE_NAME.err." 它应该命名为“ YOUR_MACHINE_NAME.err”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM