当前位置:网站首页>Can‘t connect to server on ‘IP‘ (60)
Can‘t connect to server on ‘IP‘ (60)
2022-07-28 06:33:00 【無昂博奥】
环境:
在开发过程中,问题虽然是一样的,但是环境有可能不同,所以有的时候,在搜索答案时某一种解决方案对有的人有效有的人无效。所以在解决问题的时候,我把的环境描述出来:
腾讯云+mySql5.7+Navicat 16.0.14
说明:
在腾讯云安装好mysql之后,使用Navicat连接时提示Can't connect to server on。这个问题的排查思路如下:
1、服务器是否启动
2、MySQL是否启动
3、防火墙是否打开
如果1和2都正常启动的情况下,基本就可以确定是防火墙的问题了。
如果是防火墙的问题,那就需要在防火墙中放行3306端口。解决步骤如下
我使用的宝塔面板,官网的安装说明如下:
宝塔官网
安装过之后根据提示在浏览器中进入面板控制页面。
按照上面的步骤操作之后,在用Navicat连接时就不会出现Can't connect to server on 。说明现在已经和服务器通上了。
如果你以为文章到这里就结束了,那你就太天真了,一个问题的解决是为了下一个问题的出现。
我接下来出现的问题是
1045 - Access denied for user 'root'@'114.86.185.210' (using password: YES)

解决步骤如下
1、在服务器的终端中输入以下命令
sudo mysql -u root -p
2、给root用户授予权限,并让所有的ip都能连接。
grant all privileges on *.* to 'root'@'%' identified by 'root1234';
说明:root1234是你连接的密码,可以根据自己的情况修改。
3、刷新权限
flush privileges;
4、退出mysql
exit;
5、重新使用Navicat连接,就出现了下面让人面红耳赤,心跳加速的画面。
到这里本篇的文章就要结束了,祝君成功!
边栏推荐
- 业务数字化飞速奔跑,管理数字化亟待出发
- Use ffmpeg to generate single image + single audio streaming video in batches
- OSPF comprehensive experiment (7.12)
- pyspark 写入数据到iceberg
- Talk about synchronous, asynchronous, blocking and non blocking
- 二维数组及操作
- Five screens, VR, projection, "Wei Xiaoli" rolled up on the intelligent cockpit
- 【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(八)
- Forward propagation of deep learning neural networks (1)
- SWM32系列教程5-ADC应用
猜你喜欢
![[Qt5] small software with 5 people randomly selected from the bid evaluation expert base](/img/ca/9f6bd6af45e2113c050edf3a65aaf2.png)
[Qt5] small software with 5 people randomly selected from the bid evaluation expert base

聊一聊数据库的行存与列存

Deep browser rendering principles

sql server时间字段排序

SWM32系列教程5-ADC应用

Unity切换到另一个场景的时候,发现该场景变暗了

Draw.io image saving path settings

Meituan Er Mian: why does redis have sentinels?

Talk about row storage and column storage of database

GD32使用ST的HAL库和GD官方库的一些体会
随机推荐
CAT1 4G+以太网开发板232数据通过4G模块TCP发到服务器
百度智能云九州区县大脑,描绘城乡新蓝图!
The core packages and middleware required for golang development cover all areas of the project and are worth collecting
Regular expression for mobile number verification
Recommend a fully open source, feature rich, beautiful interface mall system
What if the computer folder cannot be renamed?
Opentsdb time series database
See how Google uses pre training weights in target detection tasks | CVPR 2022
Window 2 - > toolbar (28-1)
Openstack dashboard configuring public network access
[chart component kit] Shanghai daoning provides developers with steema download, trial and tutorial
CarSim simulation quick start (XI) - Driver Model (1)
PMP practice once a day | don't get lost in the exam -7.13
Is the salary of test / development programmers unbalanced? Busy life, all kinds of job hopping
Window 1 - > main window of the application (27)
豪华版h5俄罗斯方块小游戏源码
Parse tree structure JS
Lecture notes a utility for everyone to generate PCG
Some experience of gd32 using Hal Library of ST and Gd official library
Change the dataDir path after mysql8.0.16 installation