Last active
October 24, 2021 09:49
-
-
Save JAlbertoGonzalez/d5e4b43ca8f95bc1b52363c4e5dade65 to your computer and use it in GitHub Desktop.
Installation of local MySQL on Ubuntu
This file contains hidden or 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
| 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