您好,欢迎访问一九零五行业门户网

Ubuntu下MySQL配置为外网访问_MySQL

ububtu安装mysql后默认外网无法连接,但是很多时候我们想要在外网访问方便管理。在这里,简单叙述一下自己在配置过程中的操作,步骤如下:
以root身份登入mysql
mysql -u root -p
创建可外网登陆用户
create user 'custom'@'%.example.com' identified by 'user_password';
为用户授权
grant select,insert,update,delete,create,drop  on customer.* to  'custom'@'%';
检查/etc/mysql/my.cnf,去掉绑定ip
重启服务
sudo service mysql restart
其它类似信息

推荐信息