mysql.service failed because the control process exited with error code问题
2019独角兽企业重金招聘Python工程师标准>>>
==================================================================================
最终发现是mysql本身的问题,进程杀不掉,重启机器就正常了……
===================================================================================
腾讯云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
配置文件里.
具体操作如下:
版权声明:本文为博主原创文章,未经博主允许不得转载。
转载于:https://my.oschina.net/airship/blog/1574843
mysql.service failed because the control process exited with error code问题相关推荐
- mysql重启报错b for mysqld.service failed because the control process exited with error code. See “syst
当我们重启mysql执行systemctl restart mysqld命令或者我们启动mysql服务时执行命令systemctl start mysqld时会出现以下报错:Job for mysql ...
- Job for mariadb.service failed because the control process exited with error code. Se
错误:[root@localhost ~]# systemctl start mariadb.service Job for mariadb.service failed because the co ...
- Job for mysqld.service failed because the control process exited with error code. See “systemctl sta
记一次服务器被攻击事件 由于阿里云一直提醒我服务器被攻击,部分端口被封禁等等,所以我登陆了阿里云网页端重启了一下ECS实例,结果 ...重启之后用Xshell连接不上服务器了,几番尝试无果后找到了阿里 ...
- Reids报错解决:Job for redis-server.service failed because the control process exited with error code.
此文首发于我的个人博客:Reids报错解决 Job for redis-server.service failed because the control process exited with er ...
- Job for network.service failed because the control process exited with error code问题
最小化安装了centos7 当配置静态ip的时候,执行 重启网卡的命令 systemctl restart network 但是报了 Job for network.service failed be ...
- Ubuntu中重启ssh服务时提示:Job for ssh.service failed because the control process exited with error code. See
场景 在Ubuntu中重启ssh服务时提示: Job for ssh.service failed because the control process exited with error code ...
- 启动nginx服务报错Job for nginx.service failed because the control process exited with error code.
nginx使用service nginx restart报错 启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control p ...
- Job for smbd.service failed because the control process exited with error code. See “systemctl statu
错误 $ sudo service smbd restartJob for smbd.service failed because the control process exited with er ...
- Job for slapd.service failed because the control process exited with error code. See systemctl stat
安装启动LDAP的时候如果报错 [root@cdh-server1 ~]# systemctl start slapd Job for slapd.service failed because the ...
最新文章
- JavaWeb学习笔记——jsp内置对象
- Hyper-V的实验安装----1
- 算数基本定理(例题:LightOJ1341)
- SAP_SD_客户退货需要做哪些处理
- 人生苦短,我用Python(Python快速教程 - 基础篇)
- 手把手教你使用si9000计算高速差分线的阻抗
- 2022年国家自然基金标书撰写要点的全解
- 权限管理系统,可以这么设计
- qq音速显示服务器断开,《QQ音速》常见问题问答汇总
- java tea属于红茶吗_武夷岩茶属于红茶吗
- Ubuntu中程序崩溃,杀死进程方法
- mysql gh 划线,gh-ost:在线DDL修改MySQL表结构工具
- springcloud微服务
- 如何使用思岚robostudio进行地图优化?
- 算法学习:归并排序, pta归并排序(递归法)
- SQL Server数据库mdf文件中了勒索病毒BUNNY。扩展名变为BUNNY
- 硬件工程师成长之路(5)——板子调试
- FRED中全息元件的建模
- Visio 公式编辑技巧
- 华中科技大学计算机学院辅导员,计算机学院辅导员寒假走访学生家庭
热门文章
- WEB页面多语言支持解决方案(转自CSDN)
- mysql union order by_MySQL order by 在 union 中使用实例分析
- 简易记事本广告弹窗_人民日报批弹窗广告,教你几个屏蔽弹窗广告的小技巧
- pythonjs设置_python dom操作
- 病例对照研究和队列研究详解
- matlab clabel函数用法,CLabel函数说明
- 机器人学习--智能移动机器人的有关技术演讲(浙大-熊蓉教授-2018年)
- Java实现冒泡排序及其优化
- 整理:C++中sprintf()函数的使用详解
- Matlab与C/C++混合编程接口及应用