加入收藏 | 设为首页 | 会员中心 | 我要投稿 岳阳站长网 (https://www.0730zz.com/)- 物联平台、混合云存储、数据仓库、智能推荐、智能数字人!
当前位置: 首页 > 综合聚焦 > Ubuntu > 正文

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

发布时间:2020-07-23 02:15:00 所属栏目:Ubuntu 来源:互联网
导读: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 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

(编辑:岳阳站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读