当前位置:
首页 >
ubuntu与mysql5.7设置外网可访问
发布时间:2023/12/31
45
豆豆
生活随笔
收集整理的这篇文章主要介绍了
ubuntu与mysql5.7设置外网可访问
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
①grant all privileges /etc/mysql/mysql.conf.d/mysqld.cnf
bind-address = 0.0.0.0
②grant all privileges on proxy.* to appleyuchi@"%" identified by "appleyuchi";(不确定这个是否有用)
③service mysql restart
-------------------------------------------------------测试----------------------------------------------------------------
mysql> show global variables like 'port';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port | 3306 |
+---------------+-------+
1 row in set (0.00 sec)
测试
mysql -h 具体的IP -P 3306 -u appleyuchi -p
创作挑战赛新人创作奖励来咯,坚持创作打卡瓜分现金大奖总结
以上是生活随笔为你收集整理的ubuntu与mysql5.7设置外网可访问的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 剪映app怎么重启找回视频(剪映视频创作
- 下一篇: springboot工程中各个层次的作用