Me dejo anotado esto, que nunca se sabe. Mejor no tener que utilizarlo nunca.
1 2 3 4 5 | <strong> # /etc/init.d/mysql stop # /usr/bin/mysqld_safe --skip-grant-tables & # mysql -u root </strong> |
NOTA: un día intente ejecutar este paso, y me daba problemas al utilizar el &. Quité el & y abrí otra terminal para seguir con la operación.
Accedemos dentro de la consola como root y ahora actualizamos el password
1 2 3 4 5 | # Welcome to the MySQL monitor. Commands end with ; or \g. # Your MySQL connection id is 24 # Server version: 5.0.48 Source distribution # Type 'help;' or '\h' for help. Type '\c' to clear the buffer. # mysql> use mysql; |
1 2 3 4 | # mysql> update user set password=PASSWORD("nuestroNUEVOpassword") where User='root'; # mysql> flush privileges; # mysql> quit |
Paramos e iniciamos el servicio y nos logueamos ya con el nuevo password.
1 | <strong># /etc/init.d/mysqld stop</strong> |
1 2 | STOPPING server from pid file /var/run/mysqld/mysqld.pid 080819 15:34:49 mysqld ended |
1 | <strong># /etc/init.d/mysqld start</strong> |