MySQL - Reset Root Password
$ sudo /usr/local/mysql/support-files/mysql.server stop | |
$ sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables --skip-networking & | |
mysql> UPDATE mysql.user SET Password=PASSWORD('') WHERE User='root'; | |
mysql> FLUSH PRIVILEGES; | |
mysql> exit | |
$ mysql -h localhost -u root | |
mysql> set password=password(''); | |
mysql> exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment