Primer paso, paramos el mysql,
# /etc/init.d/mysqld stopSegundo paso, ejecutar el mysqld con la opcion --skip-grant-tables
Stopping MySQL: [OK]
# mysqld --skip-grant-tablesTercer paso, ya podemos entrar en el mysql para cambiar el password
080528 11:29:20 InnoDB: Started; log sequence number 0 92228487
080528 11:29:20 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.45' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
# mysql -u rootCuarto y último paso, reiniciar el mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.45 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> update user set password=PASSWORD("tonto_quien_lo_lea") where User='root';
Query OK, 2 rows affected (0.00 sec)
Rows matched: 3 Changed: 2 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
# /etc/init.d/mysql restartY con esto ya está!!! Espero que la próxima vez me acuerde y no tenga que acabar recurriendo a esta recetilla...