Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gscattolin/e2ecfc9e1abb20caf048f491943907a9 to your computer and use it in GitHub Desktop.
Save gscattolin/e2ecfc9e1abb20caf048f491943907a9 to your computer and use it in GitHub Desktop.
Reset Mariadb root password
systemctl stop mysqld / systemctl stop mariadb
service mysqld stop / service mariadb stop
mysqld --skip-grant-tables --user=root &
> mysql
FLUSH PRIVILEGES;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root_passowrd';
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment