Access denied for user root@localhost
Could not establish connection! Details:
SQL Error: Access denied for user 'root'@'localhost'
I've tried using a password, as well as not using one. I've used MySQL in the past, but I've uninstalled it, and I started fresh with HeidiSQL. Let me know if you need more info. Thanks.
Cody
The message "access denied" means you have to find the right password for root. A fresh MySQL server normally has an empty password set for this root user. If you changed that password yourself, noone else than you will be able to tell it.
Or, you can temporarily configure the server to ignore the authentication tables, so you can connect to it with empty user and password. You will have to add this to your my.ini file:
[mysqld]
skip-grant-tables=1
Don't forget to remove the entry from your my.ini afterwards because that's extremely insecure.
Is the MySQL server installed on your local computer?
Yes: just follow the above posting about the my.ini . If you do not have a my.ini, just create one in C:\
No: Ask the administrator of the MySQL server to give you a new MySQL account
Username = "root"
Password = "ascent"
Name = "logon"
Port = "3306"
Type = "1">
change your everything what standing there to that only where LogonDatabase is standing or it will not workdont say it doesnt work because on my pc works thx :D
Whatever, sending someone who googles here to the unnecessary burden of downloading, installing and configuring PhpMyAdmin (when he might not even have a local web server to install it on) is a misleading advice, even it it worked for you.
No, I cannot explain what fixed your problem because I know nothing about it. But I can speculate that you had unflushed privilege changes and when you restarted Wampserver you inadvertently forced MySQL to apply them.
Whatever, sending someone who googles here to the unnecessary burden of downloading, installing and configuring PhpMyAdmin (when he might not even have a local web server to install it on) is a misleading advice, even it it worked for you.
Agreed with you. When i started to learn php, mysql I faced similar kind problem. After completing the code it now work. Then i make lots of change and suddenly start to work. Even sometime i do not understand where was the problem. Although, most of the time i got it. But, really, strange experience.
Please login to leave a reply, or register at first.