This page help you to access MYSQL database in Google Compute Engine from your system or network.
- Get your public IP address.
- Open Google Compute Engine in browser window
- Navigate to /etc/mysql/
- Open my.cnf file and add line: bind-address = <internal IP>
- Restart mysql server: $ service mysql restart
- Sign in as mysql root user: $mysql -u root -p
- Create new user: mysql>CREATE USER 'user1'@'<internal-ip-my-client>' IDENTIFIED BY '<some-password>'
- Provide access to the user: mysql> GRANT ALL PRIVILEGES ON *.* TO 'user1'@'<internal-ip-my-client>' IDENTIFIED BY '<some-password>';
- Restart mysql server
It's so nice article thank you for sharing a valuable content. Google cloud computing online course
ReplyDelete