Created
January 15, 2015 19:33
-
-
Save dlwhitehurst/1b2ea6e700aa1b007b60 to your computer and use it in GitHub Desktop.
Reset Root Password MariaDB on CentOS-7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e.g. only | |
$ mysqld_safe --skip-grant-tables --skip-networking & | |
[1] 22411 | |
# 140603 11:57:04 mysqld_safe Logging to syslog. | |
140603 11:57:04 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql | |
$ mysql -u root | |
mysql> use mysql; | |
mysql> update user set password=PASSWORD("new-password") where User='root'; | |
mysql> flush privileges; | |
mysql> exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment