mysql.service failed because the control process exited with error code问题
来源:互联网 发布:win10 linux 编辑:程序博客网 时间:2024/06/05 03:16
腾讯云ubuntu下配置mysql远程访问一开始可以启动,但后来关掉mysql服务一直重启失败
错误如下图所示:
一开始以为是因为进程结束的方式错误,所以就重启了一下服务器;后来发现重启服务器后也没什么用,还是mysql.service failed because the control process exited with error code这个错误,一直以为错误出在mysql.service:main process exit,code=exited,status=1/failure,一直找不到解决方法!
后来想了一下,我在mysql服务没停的时候在/etc/mysql/my.cnf->/etc/alternatives/my.cnf文件里加了一行”bind-address=10.145.154.50”,之后启动mysql服务就一直失败。大概猜到了原因:出现此类错误可能是由配置文件错误造成的。
把新加的bind-address=10.145.154.50删掉就可以启动了!
接下来说一下应该把bind-address=10.145.154.50加在什么地方.
准确的说bind-address=10.145.154.50这样配置也是错的,应该配置为bind-address=0.0.0.0,并且这行应该加在/etc/mysql/mysql.conf.d/mysqld.cnf
配置文件里.
具体操作如下:
阅读全文
0 0
- mysql.service failed because the control process exited with error code问题
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- Job for postfix.service failed because the control process exited with error code. See "systemctl st
- Dockers Job for docker.service failed because the control process exited with error code
- Job for tomcat.service failed because the control process exited with error code 解决办法:
- Job for php-fpm.service failed because the control process exited with error code. See "systemctl st
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- 关于nginx的Job for nginx.service failed because the control process exited with error code.错误
- 重启网卡报Job for network.service failed because the control process exited with error code.。。 错误
- 解决Docker启动服务器链接失败-Job for docker.service failed because the control process exited error code
- OpenStack常见错误:无法开启http服务 Job for httpd.service failed because the control process exited with error
- gitlab搭建提示inet_interfacesJob for postfix.service failed because the control process exited with erro
- Git Commit failed with error The Git process exited with the code -1,073,741,819
- ubuntu 16.04 the control process exited with error code服务启动失败
- 安装mongodb遇到的问题 ERROR: child process failed, exited with error number 100 总结
- mongo ERROR: child process failed, exited with error number 100
- mongo ERROR child process failed, exited with error number 1
- CSS朝花夕拾之两栏和三栏布局
- Android HttpGet工具
- RPC介绍
- Jupyter notebook import tensorflow as tf 出错
- hdu 1240 Asteroids!(三维bfs)
- mysql.service failed because the control process exited with error code问题
- PAT乙级 1055. 集体照 (25)
- Android Base64处理数据
- 以博客系统为例的数据库分析与设计之设计篇1
- Python探索记(04)——运算符
- 用redis实现一个投票(java版)
- 毕设系列之Linux V4L2(图形图像采集篇)
- bzoj[1855] [Scoi2010]股票交易 ,[2826]Minecraft的世界末日
- Android Base64Encoder