Loading

Ubuntu下Mysql的安装

mysql安装

apt-get install mysql-server mysql-client

登陆

 mysql -u root -p

设置可以远程链接

vim /etc/mysql/mysql.conf.d/mysqld.cnf

把bind注释掉

打开mysql 修改mysql数据库下的user表中的root列HOTST为%

Use mysql

update user set host="%" where user="root";

重启

sudo /etc/init.d/mysql restart

 

posted @ 2017-10-27 22:28  ingxx  阅读(203)  评论(0编辑  收藏  举报