http://blog.csdn.net/lizuqingblog/article/details/18423751
http://www.blogjava.net/yjhmily/articles/336926.html
https://segmentfault.com/a/1190000002514402Operating
system: ubuntu 14.04.4 LTS
installation: mysql
1: search and check
sudo apt-cache search mysql
2: install mysql
sudo apt-get install mysql-server mysql-client
3: After the installation is complete, log in and take a look
mysql -uroot -p
4: Change mysql remote access restrictions
use mysql; select user,host from user; update user set host='%' where user='root';
5: Restart mysql, if you still can't connect, you can modify the configuration file under /etc/mysql/mysql.conf.d, change 127.0.0.1 to 0.0.0.0, and restart the mysql server