Skip to content

Instantly share code, notes, and snippets.

@marcialca
Created June 18, 2013 05:25
Show Gist options
  • Select an option

  • Save marcialca/5802834 to your computer and use it in GitHub Desktop.

Select an option

Save marcialca/5802834 to your computer and use it in GitHub Desktop.
Reset MySQL root Password
Paramos el servidor MySQL:
sudo /etc/init.d/mysql stop
Arrancamos la configuración de mysqld:
sudo mysqld --skip-grant-tables &
Login en MySQL como root:
mysql -u root mysql
Cambiamos la contraseña por nuestra NuevaContraseña:
UPDATE user SET Password=PASSWORD('NuevaContraseña') WHERE User='root'; FLUSH PRIVILEGES; exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment