1. Open the Mysql remote access port
Now on the server console, open port 3306 on the security group side
2. Modify the Mysql configuration file
vim /etc/mysql/mysql.conf.d/mysqld.cnf, find bind-address = 127.0.0.1, comment out
3. Server login mysql
运行grant all on *.* to root@'%' identified by 'root'
References:
https://www.cnblogs.com/patrickding/p/6435459.html
http://blog.sina.com.cn/s/blog_1549bfbd30102x954.html