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/sh | |
| # MySQL listen on all interfaces | |
| echo "Configuring MySQL..." | |
| mysql -uroot -punsafepassword <<EOFMYSQL | |
| CREATE USER 'remoteuser'@'localhost' IDENTIFIED BY 'passwd123'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'remoteuser'@'localhost' WITH GRANT OPTION; | |
| CREATE USER 'remoteuser'@'%' IDENTIFIED BY 'passwd123'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'remoteuser'@'%' WITH GRANT OPTION; | |
| FLUSH PRIVILEGES; |
NewerOlder