当前位置:网站首页>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 !
边栏推荐
- Win10 add SSH public key
- Vipshop product details API interface (item_get- get vipshop product details interface), vipshop details API interface
- Bs-gx-018 student examination system based on SSM
- Weibo comments on high availability and high performance computing architecture
- Layer 3 loop brought by route Summary - solution experiment
- Aleph farms hired a supervisor of regulatory affairs to prepare for global commercialization in advance
- Which brokerage commission is the lowest and safest
- Top ten questions for senior Performance Test Engineer
- Structure the fifth operation of the actual camp module
- static关键字续、继承、重写、多态
猜你喜欢

Desai wisdom number - other charts (basic sunrise chart): high frequency words in graduation speech

Huawei cloud AOM version 2.0 release

CLI tool foundation of ros2 robot f1tenth

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

After inventing anti-virus software, he chose to be a top-notch gangster

Small library project summary

DevCloud加持下的青软,让教育“智”上云端

This time, I will talk about technology and life

什么是 SYN 洪水攻击?如何防护?

Bs-gx-018 student examination system based on SSM
随机推荐
阿里巴巴关键字搜索商品API接口(item_search-按关键字搜索商品接口),阿里巴巴搜索API接口
Report delivery engineer
C. Where‘s the Bishop?
亚马逊关键词搜索API接口(item_search-按关键字搜索亚马逊商品接口),亚马逊API接口
The logic behind the three whys encountered in technical communication
Yolov6 training your own data record +yolov5 comparison test
Deep learning remote sensing data set
DevCloud加持下的青软,让教育“智”上云端
ASP. Net cross page submission (button control page redirection)
Autodesk Revit 2023 software installation package download and installation tutorial
Houdini graphic notes: VAT (3.0) import ue4/5 setup wizard [official document translation]
2022 openvino DevCon unveils secrets! Intel and many partners deepen the construction of developer ecology and release the innovation potential of AI industry
In the shop project, implement a menu (add, delete, modify and query)
Taro applet enables wxml code compression
STM32 minimum system construction (schematic diagram)
ASP利用Panel实现简易注册页面
Vipshop product details API interface (item_get- get vipshop product details interface), vipshop details API interface
American tunneling ASTM E84 surface flame retardant test
Structure the fifth operation of the actual camp module
软件快速交付真的需要以安全为代价吗?