Skip to content

Instantly share code, notes, and snippets.

@okiwan
Created December 16, 2018 10:45
Show Gist options
  • Select an option

  • Save okiwan/b3c95561da6eb66a7e2d3934e5aa4a21 to your computer and use it in GitHub Desktop.

Select an option

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