首页> 开发问题 >服务器问题 服务器问题
重启服务器之后 网站报错SQLSTATE[HY000] [2002] Connection refused
作者:小萝卜 2019-05-29 【 MySql Linux 】 浏览 4983
简介网站之前好好的,刚在阿里云上面重启勒下,就打不开了,报错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)
相关文章
- IIS7.0运行PHP报错"php-cgi.exe - FastCGI 进程意外退出"
- 网页提示错误(net::ERR_EMPTY_RESPONSE)
- cp: omitting directory `/www/yingcaizhibo/filespath/flash'复制文件出错
- ckfinder报错:从服务器读取XML数据出错
- polkit pkexec 本地提权漏洞(CVE-2021-4034)解决办法
- Linux中“is not in the sudoers file”解决方法
- yum执行时Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum
- The program 'yum' is currently not installed. You can install it by typing:
- 什么情况:IP address '142.252.250.174' could not be resolved: ??֪?????????????? For more information
- MySQL报错:which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod