can't login as root

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mattsql22
    New Member
    • Feb 2008
    • 1

    can't login as root

    I just installed Red Hat Enterprise 5, along with MySQL. I have run mysql_install_d b 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'@'localho st' (using password: NO)

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

    What else can I do to login as root?
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Originally posted by mattsql22
    I just installed Red Hat Enterprise 5, along with MySQL. I have run mysql_install_d b 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'@'localho st' (using password: NO)

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

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


    nomad

    Comment

    Working...