ubuntu16.04安装mysql并配置远程访问

sudo apt install mysql-server mysql-client

启动mysql服务

service mysql start

配置远程访问

grant all privileges on *.* toroot@"%" identified by "yourpassword" with grant option;

重新授权表

flush privileges;

修改配置文件

sudo gedit /etc/mysql/mysql.conf.d

注释掉

bind-address  = 127.0.0.1

即前边加上‘#’

完成重启mysql服务

service mysql restart

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...