当前位置:网站首页>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

边栏推荐
- GIS related data
- yarn的安装和使用
- Arrangement of language resources of upgraded version
- Feign pit
- [note] on May 27, 2022, MySQL is operated through pychart
- [FAQ] page cross domain and interface Cross Domain
- [punch in - Blue Bridge Cup] day 1 --% 7F format output
- [operation] getting started with MySQL on May 23, 2022
- [punch in - Blue Bridge Cup] day 3 --- slice in reverse order list[: -1]
- SDS understanding in redis
猜你喜欢
![C # [advanced part] C # multithreading](/img/16/2a7c477b4cee32d9ce1e543c9d4c7e.png)
C # [advanced part] C # multithreading

1148_ Makefile learning_ Targets, variables, and wildcards in makefile

Laravel9 installation locale

MySQL performance optimization (5): principle and implementation of master-slave synchronization

Realization of BFS in C language by storing adjacency matrix of graph

专升本高数(四)

unity input system 使用记录(实例版)

The jupyter notebook kernel hangs up frequently and needs to be restarted

Analysis of similarities and differences of various merged features (Union, merge, append, resolve) in ArcGIS

王爽-汇编语言 万字学习总结
随机推荐
【作业】2022.5.25 MySQL 查操作2
Play with algorithm interview together, nanny level strategy (with high-definition codeless algorithm summary map), recommended collection
【筆記】AB測試和方差分析
Hudi record
1150_ Makefile learning_ Duplicate name target processing in makefile
实用调试技巧
【力扣刷题总结】数据库题目按知识点分类总结(持续更新/简单和中等题已完结)
Neo4j--- performance optimization
51 single chip microcomputer indoor environment monitoring system, mq-2 smoke sensor and DHT11 temperature and humidity sensor, schematic diagram, C programming and simulation
专升本高数(三)
Utilisation de foreach en Qt
专升本高数(四)
Dripping backward (II)
Version correspondence table of tensorflow, CUDA and bazel
Product thinking - is the future of UAV express worth looking forward to?
UML diagrams and list collections
Analysis of similarities and differences of various merged features (Union, merge, append, resolve) in ArcGIS
[operation] getting started with MySQL on May 23, 2022
[note] on May 28, 2022, data is obtained from the web page and written into the database
【论文阅读|深读】DANE:Deep Attributed Network Embedding