Created
December 5, 2019 15:26
-
-
Save bokwoon95/d9d02c220c3c71d4bc2817309dc05c46 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y mysql-server | |
# sudo mysql_secure_installation | |
echo " | |
CREATE USER 'pg'@'localhost' IDENTIFIED BY 'pg'; | |
CREATE USER 'pg'@'%' IDENTIFIED BY 'pg'; | |
GRANT ALL PRIVILEGES ON *.* TO 'pg'@'localhost' WITH GRANT OPTION; | |
GRANT ALL PRIVILEGES ON *.* TO 'pg'@'%' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
" | tee /dev/tty | sudo mysql # https://tableplus.com/blog/2018/10/how-to-create-a-superuser-in-mysql.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment