4

So I tried to change my mysql root password for the first time using a advanced pattern and it looks like phpmyadmin stripped the password on save. Now I can't login under root.

I am using RHEL 5 and it seems that all the instructions I keep finding don't work.

When I run the following command. I get

[root@vault ~]# mysqld_safe –skip-grant-tables -u root &
[1] 30274
[root@vault ~]# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
110705 20:38:37  mysqld ended

Does anyone know of a workaround that works?

Thanks,

RichardW11
  • 219
  • 2
  • 10
  • Can you post the tail of the MySQL error log? On Ubuntu this will do it - not sure if RHEL puts it in the same place: tail /var/log/mysql.err –  Jul 06 '11 at 02:17

2 Answers2

2

You have a typo

mysqld_safe –skip-grant-tables -u root &

should read

mysqld_safe -–skip-grant-tables -u root &
RolandoMySQLDBA
  • 16,364
  • 3
  • 47
  • 80
0

Recently addressed:

Lost MySQL password

If the --skip-grant-tables doesn't work as a flag, see above link.

arkigos
  • 236
  • 1
  • 3