首页> 开发问题 >服务器问题 服务器问题
重启服务器之后 网站报错SQLSTATE[HY000] [2002] Connection refused
作者:小萝卜 2019-05-29 【 MySql Linux 】 浏览 4643
简介网站之前好好的,刚在阿里云上面重启勒下,就打不开了,报错SQLSTATE[HY000] [2002] Connection refused
网站之前好好的,刚在阿里云上面重启勒下,就打不开了,报错SQLSTATE[HY000] [2002] Connection refused
查看mysql运行情况:
[root@admin-node subsys]# service mysql start
Starting MySQL. ERROR!
[root@admin-node subsys]# service mysql status
ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
发现报错:ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
/var/lock/subsys/mysql存在的原因可能是以前没有卸载干净或者上次意外退出。
直接将其删除就可以了,删除后再执行service mysql start。
很赞哦! (1)
相关文章
- MySQL报错:which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod
- yum执行时Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum
- ckfinder报错:从服务器读取XML数据出错
- cp: omitting directory `/www/yingcaizhibo/filespath/flash'复制文件出错
- 什么情况:IP address '142.252.250.174' could not be resolved: ??֪?????????????? For more information
- 可以ping通虚拟机但不能telnet 9000端口
- 解决linux安装软件:/lib/ld-linux.so.2: bad ELF interpreter问题
- Linux启动提示Kernel panic - not syncing: Attempted to kill init解决办法
- polkit pkexec 本地提权漏洞(CVE-2021-4034)解决办法
- MySQL报错: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine解决办法