ubuntu 14.04.4 LTS 安装 mysql

参考:
http://blog.csdn.net/lizuqingblog/article/details/18423751
http://www.blogjava.net/yjhmily/articles/336926.html
https://segmentfault.com/a/1190000002514402

操作系统: ubuntu 14.04.4 LTS
安装: mysql

1:搜索查看一下
sudo apt-cache search mysql


2:安装mysql
sudo apt-get install mysql-server mysql-client


3:安装完毕后登入看一下
mysql -uroot -p


4:更改mysql远程访问限制

use mysql;
select user,host from user;
update user set host='%' where user='root';


5:重启mysql,如果还连接不上,可以修改/etc/mysql/mysql.conf.d下的配置文件,把127.0.0.1修改为0.0.0.0,重启mysql服务器

猜你喜欢

转载自cook1fan.iteye.com/blog/2323436