MySQL said: Documentation #1045 - Access denied fo

2019-01-13 13:10发布

i install xampp,but when i try to run it i got error said that like this :

Error

MySQL said: Documentation

1045 - Access denied for user 'root'@'localhost' (using password: NO)

Connection for controluser as defined in your configuration failed. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

i try search in internet for solution, but i still can't fix my problem. I already check whether i used password or not in config.inc.php file. but i do not have use any password. and when i try put password, i still can't solve this problem.

i hope anyone can help me. .thank you

20条回答
不美不萌又怎样
2楼-- · 2019-01-13 13:53

Try this:

1. xampp/htdocs/xampp/cds.php

change line 4 to: mysql_connect("localhost","root","enter password here");
change line 64 to: if(!mysql_connect("localhost","root","enter password here"))

From here

查看更多
爷的心禁止访问
3楼-- · 2019-01-13 13:54

I'm afraid there's a conflict with the port number(80). Make sure you don't run some software like Skype that use the same port 80

查看更多
登录 后发表回答