Skip to content

Instantly share code, notes, and snippets.

@cinco
Created July 6, 2015 14:52
Show Gist options
  • Save cinco/77e51d9cc480a4e56b72 to your computer and use it in GitHub Desktop.
Save cinco/77e51d9cc480a4e56b72 to your computer and use it in GitHub Desktop.
reset mysql root password
sudo service mysql stop
sudo mysqld_safe --skip-grant-tables &
mysql -u root
use mysql;
update user set password=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit
### encerre o mysqld_safe e:
sudo service mysql start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment