- sudo systemctl stop mariadb
- mysqld_safe --skip-grant-tables --skip-networking &
- mysql -u root -p
- set password for 'root'@'localhost' = password('')
- Exit, stop server (kill -9) and start normally using systemctl
Created
December 16, 2018 10:45
-
-
Save okiwan/b3c95561da6eb66a7e2d3934e5aa4a21 to your computer and use it in GitHub Desktop.
Alter root password on MariaDB instance startup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment