Skip to content

Instantly share code, notes, and snippets.

@JAlbertoGonzalez
Last active October 24, 2021 09:49
Show Gist options
  • Select an option

  • Save JAlbertoGonzalez/d5e4b43ca8f95bc1b52363c4e5dade65 to your computer and use it in GitHub Desktop.

Select an option

Save JAlbertoGonzalez/d5e4b43ca8f95bc1b52363c4e5dade65 to your computer and use it in GitHub Desktop.
Installation of local MySQL on Ubuntu
sudo apt update
sudo apt install mysql-server
sudo mysql
# Drop root@localhost user to recreate it
DROP USER 'root'@'localhost';
CREATE USER 'root'@'localhost';
GRANT ALL ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
CREATE USER 'root'@'%' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'root'@'%' WITH GRANT OPTION;
CREATE USER 'tack'@'%' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'tack'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment