当前位置:网站首页>Problems encountered in installing mysql8 on MAC
Problems encountered in installing mysql8 on MAC
2022-07-06 05:24:00 【Receptive2WE】
Mac install MySQL8 Problems encountered
An error is reported when linking the database
The error information is generally as follows
Connection failed.
MySQL said: Authentication plugin ‘caching_sha2_password’ cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 0x0002): tried: ‘/usr/local/mysql/lib/plugin/caching_sha2_password.so’ (no such file), ‘/usr/local/lib/caching_sha2_password.so’ (no such file),
The question is because MySQL8 Enhanced encryption is used . That is, it cannot be loaded when linking the database ‘caching_sha2_password’ This plugin , That is, you cannot authenticate . some MySQL Management tools ( Like the one I used Sequel Pro) Not yet , Need to use MySQL The previous encryption method can only encrypt the account password . There are two ways to solve :
If the database has no data to be retained , And through DMG File installed , It can be solved by reinitializing the database in the system preferences . Steps are as follows :
- Open system preferences , find mysql, Click on Initialize Database.
- Enter your new password , Remember this password , It is used for login of later linked database .
- choice ‘Use legacy password‘.
- restart mysql service
If it's through brew The installed or database already has some data that you want to keep , It can also be solved through the command line . The following three lines :
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'your_password' PASSWORD EXPIRE NEVER; # Modify encryption rules mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password'; # Update the user's password mysql> FLUSH PRIVILEGES;
Either of the above two ways can be used sql Manage tool links MySQL8 The database of . But there may be new problems , Like this one down here ...
An exception is thrown when selecting a database or table , Infinite turn Chrysanthemum

After the first problem is solved, use Sequel Pro An exception may be thrown when selecting a database or table , Start turning chrysanthemums endlessly , And display loading database ‘xxx’. This question can only be used Sequel Pro The version is too old to explain , at present Sequel Pro The latest stable version released 1.1.2 Release time is still 2016 year , and MySQL yes 2018 Published in .. Can't , Use test build Version ,https://sequelpro.com/test-builds Here to download , This test build The version is 19 year 6 Released in April .
边栏推荐
- Zoom and pan image in Photoshop 2022
- 【华为机试真题详解】统计射击比赛成绩
- nacos-高可用seata之TC搭建(02)
- 从0到1建设智能灰度数据体系:以vivo游戏中心为例
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- 自建DNS服务器,客户端打开网页慢,解决办法
- js Array 列表 实战使用总结
- Vulhub vulnerability recurrence 73_ Webmin
- Leetcode dynamic planning day 16
- HAC集群修改管理员用户密码
猜你喜欢
![[leetcode daily question] number of enclaves](/img/6e/1da0fa5c7d1489ba555e4791e2ac97.jpg)
[leetcode daily question] number of enclaves

毕业设计游戏商城

GAMES202-WebGL中shader的編譯和連接(了解向)

Codeforces Round #804 (Div. 2) Editorial(A-B)

Nacos - TC Construction of High available seata (02)

03. 开发博客项目之登录

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

Easy to understand I2C protocol

04. Project blog log

Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
随机推荐
Algorithm -- climbing stairs (kotlin)
Fiddler installed the certificate, or prompted that the certificate is invalid
ByteDance program yuan teaches you how to brush algorithm questions: I'm not afraid of the interviewer tearing the code
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Leetcode dynamic planning day 16
02. Develop data storage of blog project
Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
C# AES对字符串进行加密
Three methods of Oracle two table Association update
JDBC calls the stored procedure with call and reports an error
Fuzzy -- basic application method of AFL
Set detailed map + interview questions
Pointer classic written test questions
关于Unity Inspector上的一些常用技巧,一般用于编辑器扩展或者其他
[leetcode] 18. Sum of four numbers
Hyperledger Fabric2. Some basic concepts of X (1)
Vulhub vulnerability recurrence 69_ Tiki Wiki
Oracle query table index, unique constraint, field
Rce code and Command Execution Vulnerability
[leetcode daily question] number of enclaves
