Restaurar clave de root mysql
1. Stop mysqld and restart it with the --skip-grant-tables --user=root options (Windows users omit the --user=root portion). host@loco# /etc/init.d/mysqld stop (Esto en Fedora - Centos - Redhat) host@loco# /usr/libexec/mysqld --skip-grant-tables --user=root 2. Connect to the mysqld server with this command: Shell> mysql -u root (no va a pedir clave de root) 3 .Issue the following statements in the mysql client: mysql> UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root'; mysql> FLUSH PRIVILEGES; Replace “newpwd” with the actual root password that you want to use. 4. You should be able to connect using the new password. host@loco# killall mysqld (matas mysql no se si es lo mas correcto de esta forma) host@loco# /etc/init.d/mysqld start (Inicias nuevmente mysql y deberías estar listo) Esta forma he usado y funciona super bien. Saludos, -- Pedro El 27 de abril de 2012 17:22, Juan Esteban <jpulg...@gmail.com> escribió: > my.cnf > > cambia el usuario que maneja el servidor: > [mysqld] > # > # * Basic Settings > # > user = root > pid-file = /var/run/mysqld/mysqld.pid > socket = /var/run/mysqld/mysqld.sock > port = 3306 > basedir = /usr > datadir = /var/lib/mysql > tmpdir = /tmp > language = /usr/share/mysql/english > skip-external-locking > # > > Despues reinicia el servidor: > /etc/init.d/mysql restart > > Me cuentas si te sirve. > > El 27 de abril de 2012 16:50, Gonzalo Diaz Cruz <m...@gon.cl> escribió: > ... > -- Pedro Silva