当前位置:网站首页>Solve the problem of Navicat connecting to the database
Solve the problem of Navicat connecting to the database
2022-06-30 03:46:00 【Where you go, where you climb】
One 、 Check whether the port is 3306
dos Window input command :mysql -uroot -p

Then the input :show global variables like 'port';

Two 、 Whether to add the port number to the firewall
2.1 Inbound rules -- Double click new rule


2.2 Enter the port number :3306




3、 ... and 、 appear 1130 error

resolvent :
3.1 open dos Command window , Sign in :mysql -uroot -p

3.2 Input use mysql ;

3.3 see mysql User information of the service ( user name , Accessible ip) Input :select user, host from user;
3.4 user representative mysql Service accessible users ,host Run on behalf of the user in the specified ip Visit (localhost, Indicating the machine ) modify root Users are allowed to access... On the task machine update user set host='%' where user='root';

3.5 Then change the remote connection settings command :GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘root’ WITH GRANT OPTION;
3.6 Refresh user rights , send root The newly set permissions can take effect flush privileges;

3.7 Successful connection

边栏推荐
- Mysql性能优化(6):读写分离
- 如何通过进程启动来分析和解决EasyCVR内核端口报错问题?
- [operation] write CSV to database on May 28, 2022
- 4-5 count words and spaces (15 points)
- GIS related data
- matplotlib. pyplot. Hist parameter introduction
- 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
- Laravel9 installation locale
- Vscode+anaconda+jupyter reports an error: kernel did with exit code
- Use of foreach in QT
猜你喜欢

laravel9本地安装

(Reprinted) an article will take you to understand the reproducing kernel Hilbert space (RKHS) and various spaces

TiDB 6.0:讓 TSO 更高效丨TiDB Book Rush
![[Note] ab Test and Variance Analysis](/img/f2/58369a99514d37d5af335a61d0911f.jpg)
[Note] ab Test and Variance Analysis

1151_ Makefile learning_ Static matching pattern rules in makefile

Hudi record

(04).NET MAUI实战 MVVM

华为云原生——数据开发与DataFactory

X Book 6.97 shield unidbg calling method

绿色新动力,算力“零”负担——JASMINER X4系列火爆热销中
随机推荐
Wang Shuang - assembly language learning summary
【常见问题】页面跨域和接口跨域
Interface test tool postman
[0x0] open questions left by the principal
Usage record of unity input system (instance version)
December2020 - true questions and analysis of C language (Level 2) in the youth level examination of the Electronic Society
Use of foreach in QT
[personal summary] learning plan
QT中foreach的使用
Realization of BFS in C language by storing adjacency matrix of graph
Product thinking - is the future of UAV express worth looking forward to?
[operation] getting started with MySQL on May 23, 2022
【作业】2022.5.25 MySQL 查操作2
LitJson解析 生成json文件 读取json文件中的字典
51 single chip microcomputer indoor environment monitoring system, mq-2 smoke sensor and DHT11 temperature and humidity sensor, schematic diagram, C programming and simulation
1152_ Makefile learning_ Pattern matching rules
A GPU approach to particle physics
If you can tell whether the external stock index futures trading platform I am trading is formal and safe?
第2章 控制结构和函数(编程题)
【笔记】2022.5.27 通过pycharm操作MySQL