469,592 Members | 1,698 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

can't login as root

I just installed Red Hat Enterprise 5, along with MySQL. I have run mysql_install_db and I can see the mysql folder that contains the 'mysql' database with the users. Unfortunately, I can't login as root. I have tried without specifying a password, and also with a blank password. And I have tried the SAME using mysqladmin

I can login as any generic user without a password, but this of course won't allow be see the mysql table and have the rights that root has.

[root@romulus ~]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

[root@romulus ~]# mysql -u root -p
Password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

What else can I do to login as root?
Feb 28 '08 #1
1 1771
nomad
664 Expert 512MB
I just installed Red Hat Enterprise 5, along with MySQL. I have run mysql_install_db and I can see the mysql folder that contains the 'mysql' database with the users. Unfortunately, I can't login as root. I have tried without specifying a password, and also with a blank password. And I have tried the SAME using mysqladmin

I can login as any generic user without a password, but this of course won't allow be see the mysql table and have the rights that root has.

[root@romulus ~]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

[root@romulus ~]# mysql -u root -p
Password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

What else can I do to login as root?
Question do you have MySQL running?


nomad
Feb 28 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by John | last post: by
reply views Thread by kevincw01 | last post: by
2 posts views Thread by Beginner | last post: by
1 post views Thread by frolda | last post: by
4 posts views Thread by Ben | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.