phpMyAdmin报错mysqli_real_connect(): (HY000/2002):mysqli_real_connect(): (HY000/1045):的解决方法

phpMyAdmin报错mysqli_real_connect(): (HY000/2002):mysqli_real_connect(): (HY000/1045):的解决方法mysqli_real_connect(): (HY000/2002): 由于目标计算机积极拒绝,无法连接。

phpmyadmin提示mysqli_real_connect(): (HY000/2002): No such file or directory错误的解决办法!

1、在宝塔面,选择终端,输入以下命令:

/etc/init.d/mysqld stop
rm -f /www/server/data/ib_logfile*
rm -f /www/server/data/mysql-bin.*
/etc/init.d/mysqld statt

2、然后输入命令,重启数据库

service mysqld restart

如果一次不成功,请重复以上步骤,即可进入数据库!

数据库更多命令:

service mysqld restart //
重启
service mysqld start //
启动
service mysqld stop //
关闭