visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: Access denied to user MY_USER@localhost (User passwrod: YES)


By: Squibi U.S.A.  Date: 18/10/2004 00:00:00  English  Points: 125 Status: Answered
Quality : Excellent
Let me start by saying that i am running Windows XP

I have just installed mySQL as i am intressed to use it...

i also download the control center... i seem to be getting this error when i try to connecto to my database...

Access denied to user MY_USER@localhost (User password=YES)

CAN ANYONE HELP???
By: paullamhkg Date: 18/10/2004 12:11:00 English  Type : Answer
ok, normally after you install the mysql all users can access it without using password, in your case you provide a password for MY_USER while trying to login/access mysql.

try this mysql -u MY_USER, you will able to get into it.
eg.

C:\mysql\bin>mysql -u root (root is the superuser of mysql)
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.12-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

without password for root is risky, so now try to assign a password to the root do this

mysql> SET PASSWORD FOR root@localhost=PASSWORD('[the new password for root]');
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.16 sec)

you can also do the above for the user(s) having password to login.

Try to read the doc. at <A HREF="http://www.mysql.com">www.mysql.com</A>







By: VGR Date: 18/10/2004 16:25:00 English  Type : Assist
just a detail : apparently, this syntax works better and nobody knows why :D

mysql --user=root --password=thepassword

or (if no root password yet)

mysql --user=root
By: paullamhkg Date: 18/10/2004 16:30:00 English  Type : Comment
because you are the expert's expert :)

I did know after I read the mysql manual, that why reading the doc. on the mysql web or manual also the way to find a solution :)

Do register to be able to answer

EContact
browser fav
page generated in 699.140070 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page