当前位置:网站首页>解决navicat连接数据库遇到的问题
解决navicat连接数据库遇到的问题
2022-06-30 03:38:00 【走到哪,爬到哪】
一、查看端口是否是3306
dos窗口输入命令:mysql -uroot -p
接着输入:show global variables like 'port';
二、是否把端口号添加到防火墙
2.1 入站规则--双击新建规则
2.2 输入端口号:3306
三、出现1130错误
解决方法:
3.1 打开dos命令窗口,登录:mysql -uroot -p
3.2 输入use mysql ;
3.3 查看mysql 服务的用户信息(用户名,可访问ip)输入:select user, host from user;
3.4 user 代表mysql服务可访问的用户,host代表用户运行在制定的ip上访问(localhost,表示本机)修改root用户允许在任务机器上访问 update user set host='%' where user='root';
3.5 然后更改远程连接设置命令:GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘root’ WITH GRANT OPTION;
3.6 刷新用户权限,使root新设置的权限能够生效 flush privileges;
3.7 连接成功
边栏推荐
- dotnet-exec 0.5.0 released
- C#【高级篇】 C# 多线程
- On the optimization and use of idea
- I have published a book, "changing life against the sky - the way for programmers to become gods", which is open source. I have been working for ten years. There are 100 life suggestions from technica
- 【常见问题】页面跨域和接口跨域
- December2020 - true questions and analysis of C language (Level 2) in the youth level examination of the Electronic Society
- Feign 坑
- NER中BiLSTM-CRF解读score_sentence
- laravel9本地安装
- If you can tell whether the external stock index futures trading platform I am trading is formal and safe?
猜你喜欢
华为云原生——数据开发与DataFactory
[wechat applet] how did the conditional rendering list render work?
unity input system 使用记录(实例版)
UML图与List集合
QT中foreach的使用
Utilisation de foreach en Qt
I have published a book, "changing life against the sky - the way for programmers to become gods", which is open source. I have been working for ten years. There are 100 life suggestions from technica
SDS understanding in redis
[punch in - Blue Bridge Cup] day 3 --- slice in reverse order list[: -1]
毕业设计EMS办公管理系统(B/S结构)+J2EE+SQLserver8.0
随机推荐
Number of students from junior college to Senior College (4)
Mysql性能优化(6):读写分离
LitJson解析 生成json文件 读取json文件中的字典
[note] May 23, 2022 MySQL
【作业】2022.5.25 MySQL 查操作2
X书6.89版本shield-unidbg调用方式
第2章 控制结构和函数(编程题)
声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏
C#【高级篇】 C# 多线程
[operation] getting started with MySQL on May 23, 2022
【笔记】AB测试和方差分析
Huawei interview question: divide candy
UML图与List集合
[personal summary] learning plan
Global and Chinese market of bulk acoustic wave devices 2022-2028: Research Report on technology, participants, trends, market size and share
On the optimization and use of idea
Installation and use of yarn
Deep learning: implementation skills of deep neural network
Product thinking - is the future of UAV express worth looking forward to?
Global and Chinese market for nasal drug delivery devices 2022-2028: Research Report on technology, participants, trends, market size and share