#1045 - Access denied for user 'root'@'localhost'

Reply

Join Date: Apr 2008
Posts: 583
Reputation: veledrom is an unknown quantity at this point 
Solved Threads: 0
veledrom veledrom is offline Offline
Posting Pro

#1045 - Access denied for user 'root'@'localhost'

 
0
  #1
Feb 16th, 2009
Hi,

I get this error in my myPhpAdmin in WAMPserver 2f.
  1. #1045 - Access denied for user 'root'@'localhost' (using password: NO)

How can i solve it?
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 934
Reputation: verruckt24 is just really nice verruckt24 is just really nice verruckt24 is just really nice verruckt24 is just really nice verruckt24 is just really nice 
Solved Threads: 82
verruckt24's Avatar
verruckt24 verruckt24 is offline Offline
Posting Shark

Re: #1045 - Access denied for user 'root'@'localhost'

 
0
  #2
Feb 16th, 2009
You aren't using a password for the root account and your access is denied, this certainly means that the root account on localhost does have a password.

Initially the root accounts created by the install script in MySQL do have an empty password, but as mentioned above your server does seem to have one.
Get up every morning and take a look at the Forbes' list of richest people. If your name doesn't appear.... GET TO WORK !!!
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 583
Reputation: veledrom is an unknown quantity at this point 
Solved Threads: 0
veledrom veledrom is offline Offline
Posting Pro

Re: #1045 - Access denied for user 'root'@'localhost'

 
0
  #3
Feb 17th, 2009
How do i solve it verruckt24 ? I can connect to the database but i cant use phpMyAdmin GUI page.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 934
Reputation: verruckt24 is just really nice verruckt24 is just really nice verruckt24 is just really nice verruckt24 is just really nice verruckt24 is just really nice 
Solved Threads: 82
verruckt24's Avatar
verruckt24 verruckt24 is offline Offline
Posting Shark

Re: #1045 - Access denied for user 'root'@'localhost'

 
0
  #4
Feb 17th, 2009
Detail your problem, where are you able to connect to the database from. Where is your phpMyAdmin located.
It would help you to know that user accounts in MySQL are made up of a username and a host that the username is allowed to connect from. So the account name is 'username@host'. An account john@mydomain may be able to connect to the MySQL server does not mean that the account john@domain2 would be able to connect to the same MySQL server too. This is what allows two persons with the same username but on a different machine to be identified as two different user accounts in MySQL and hence be controlled differently.

So when you say, you are able to connect to the server from, say, your PC does not mean that you should be able to connect from phpMyAdmin as well, cause, the phpMyAdmin module could be located on a different server.
Last edited by verruckt24; Feb 17th, 2009 at 6:06 am.
Get up every morning and take a look at the Forbes' list of richest people. If your name doesn't appear.... GET TO WORK !!!
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 101
Reputation: PirateTUX is an unknown quantity at this point 
Solved Threads: 3
PirateTUX's Avatar
PirateTUX PirateTUX is offline Offline
Junior Poster

Re: #1045 - Access denied for user 'root'@'localhost'

 
0
  #5
Feb 23rd, 2009
MySQL user permissions can be very very confusing, for the reasons that verruckt24 mentioned. Just because you've set permissions for a user one way doesn't mean he/she will be able to connect another way.

Have you tried using the system root password to log in to phpMyAdmin? Is this server yours, or are you using a hosting service?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3630 | Replies: 4
Thread Tools Search this Thread



Tag cloud for MySQL
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC