当前位置:网站首页>云主机mysql在本地电脑连接不上
云主机mysql在本地电脑连接不上
2022-06-29 04:05:00 【深巷旧忆】
云主机MySQL在本地电脑连接不上问题解决
检查防火墙
防火墙相关命令(都在root用户下进行)
启动防火墙 ufw enable
放开端口 ufw allow 3306/tcp
删除放开的端口 ufw delete allow 3306/tcp
查看防火墙状态 ufw status
重启防火墙 ufw reload
防火墙开放端口后还是不能连接的
修改配置文件
进入目录
cd /etc/mysql/mysql.conf.d/
查找到mysqld.cnf文件
进入修改 bind-address =127.0.0.1 修改为 bind-address = 0.0.0.0
之后保存退出
重启mysql服务
/etc/init.d/mysql restart
最后在本地再尝试连接,如有其他问题,可以留言交流
边栏推荐
- Establishment of small and medium-sized enterprise network
- Web crawler knowledge day04
- How sqlserver queries and removes results with null fields in the whole column
- Ansible最佳实践之Playbook不同上下文提权Demo
- PostgreSQL 出现cross-database references are not implemented的bug
- 智能视觉组比赛流程草案
- 谁家的加密密钥,写死在代码里?(说的就是你)
- Data collection and management [15]
- MySQL复习资料(附加)case when
- 【FPGA+sin】基于DDS(直接数字合成)的正弦信号发生器模块FPGA实现
猜你喜欢
随机推荐
SQL two columns become multi row filter display
Vg4131sxxxn0s1 wireless module hardware specification
I came from a major, so I didn't want to outsource
Data collection and management [12]
Here comes Wi Fi 7. How strong is it?
5-minute NLP: summary of time chronology from bag of words to transformer
Share 60 divine vs Code plug-ins
Data collection and management [1]
【C语言】解决 “address of stack memory associated with local variable ‘num‘ returned”
【FPGA+sin】基于DDS(直接数字合成)的正弦信号发生器模块FPGA实现
leetcode - 295. 数据流的中位数
String differences between different creation methods
在命令行登录mysql数据库以及查看版本号
【布里渊现象】光纤布里渊温度和应变分布同时测量系统研究
If I hadn't talked to Ali P7, I wouldn't know I was a mallet
Data statistical analysis (SPSS) [3]
[nrf51][nrf52] nrfconnect installation instructions guide
SqlServer如何查询除去整列字段为null的结果
New listing of operation light 3.0 -- a sincere work of self subversion across the times
logstash启动过慢甚至卡死









