Skip to content

Instantly share code, notes, and snippets.

@andrejko
Last active August 29, 2015 14:08
Show Gist options
  • Save andrejko/8b418e1acaf77646e448 to your computer and use it in GitHub Desktop.
Save andrejko/8b418e1acaf77646e448 to your computer and use it in GitHub Desktop.
sudo /etc/init.d/mysql stop
sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
mysql -u root
UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root';
FLUSH PRIVILEGES;
exit;
sudo /etc/init.d/mysql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment