当前位置:网站首页>The correct method for Navicat to connect to mysql8.0 (valid for personal testing)
The correct method for Navicat to connect to mysql8.0 (valid for personal testing)
2022-06-29 22:08:00 【1024 Q】
Today's next MySQL8.0, Find out Navicat Can't connect , Always reporting mistakes 1251;
as a result of MySQL8.0 Version of the encryption and MySQL5.0 Is not the same , The connection will report an error .
Tried many ways , Finally find a way to achieve :
Change encryption
1. Go through the command line first mysql Of root Account :
PS C:\Windows\system32> mysql -uroot -pInput again root Password :
Enter password: ******Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 18Server version: 8.0.11 MySQL Community Server - GPLCopyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>2. Change encryption :
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;Query OK, 0 rows affected (0.10 sec)3. Change password :
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';Query OK, 0 rows affected (0.35 sec)4. Refresh :
mysql> FLUSH PRIVILEGES;Query OK, 0 rows affected (0.28 sec)// If you make a mistake ERROR 1396 (HY000): Operation ALTER USER failed for 'root'@'%' :
The remote access permission is incorrect , Select the database first , Check and change :
mysql> use mysql;Database changedmysql> select user,host from user;+------------------+-----------+| user | host |+------------------+-----------+| mysql.infoschema | localhost || mysql.session | localhost || mysql.sys | localhost || root | localhost |+------------------+-----------+5 rows in set (0.00 sec)summary
This is about Navicat Connect MySQL8.0 This is the end of the article on the correct method of , More about Navicat Connect MySQL8.0 Please search the previous articles of software development network or continue to browse the relevant articles below. I hope you will support software development network more in the future !
边栏推荐
- 细说GaussDB(DWS)复杂多样的资源负载管理手段
- 阿里巴巴关键字搜索商品API接口(item_search-按关键字搜索商品接口),阿里巴巴搜索API接口
- Desai wisdom number - other charts (basic sunrise chart): high frequency words in graduation speech
- CSDN failed to replicate problem
- What is a SYN Flood attack? How to protect?
- Wechat bulletin number Turing robot realizes intelligent reply
- In the shop project, implement a menu (add, delete, modify and query)
- [advanced ROS] Lecture 3 ROS file system and distributed communication
- cout 不明确问题
- Detailed explanation of key points in implementing MES system in Enterprises
猜你喜欢

夏日彩虹来下饭

数论-整除分块

Knowledge distilling learning notes

As a developer, you need to know about the codeless development platform IVX

STM32 and gd32 notes
![[advanced ROS] Lecture 3 ROS file system and distributed communication](/img/9f/2c316f5b0aa36b63769672048da772.png)
[advanced ROS] Lecture 3 ROS file system and distributed communication

MySQL,MVCC详解,快照读在RC、RR下的区别

Matlab adds noise / disturbance to data

Deep learning remote sensing data set

Desai wisdom number - other charts (basic sunrise chart): high frequency words in graduation speech
随机推荐
Weibo comments on high availability and high performance computing architecture
Reading notes on how to connect the network - Web server request and response (V)
免费将pdf转换成word的软件分享,这几个软件一定要知道!
CSDN failed to replicate problem
Amazon Keyword Search API interface (item_search- Amazon product search interface by keyword), Amazon API interface
ASP. Net cross page submission (button control page redirection)
Layer 3 loop brought by route Summary - solution experiment
生产环境AIX小机报错B6267342问题处理
Matlab adds noise / disturbance to data
客户端可以连接远程mysql
89. (cesium article) cesium aggregation diagram (custom picture)
2022 openvino DevCon unveils secrets! Intel and many partners deepen the construction of developer ecology and release the innovation potential of AI industry
As for the domestic Kirin system running QT, it can be run on the command line but cannot be run by double clicking (no response)
What is a SYN Flood attack? How to protect?
Don't worry about form deformation anymore
Which brokerage commission is the lowest and safest
这次跟大家聊聊技术,也聊聊人生
软件快速交付真的需要以安全为代价吗?
Deep learning remote sensing data set
Taro2.* applet configuration sharing wechat circle of friends