手动安装mysql后拒绝phpmyadmin访问

时间:2018-06-21 16:28:07

标签: php mysql phpmyadmin

我已经有xampp后尝试安装mysql,更改了密码,现在尝试访问phpmyadmin时出现此错误

        Error
MySQL said: Documentation

#2002 - No connection could be made because the target machine actively refused it.
— The server is not responding (or the local server's socket is not correctly configured).
mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
Connection for controluser as defined in your configuration failed.
mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.

我尝试了所有操作,包括更改confing.inc.php中的密码 并尝试从cmd重置密码,当我尝试此操作时出现此错误:

MySQL [(none)]> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PASSWORD('')' at line 1

0 个答案:

没有答案