To reset the MySQL root password under Red Hat Linux:
[root@host root]# service mysqld stop
[root@host root]# /usr/libexec/mysqld -Sg –user=root &
[root@host root]# mysql
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1 to server version: 3.23.58
Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the buffer.
mysql> USE mysql
Reading table [...]
Posted in Linux | 1 Comment »