当前位置:网站首页>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 .
边栏推荐
- Fluent implements a loadingbutton with loading animation
- 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
- 2022半年总结
- 2022 half year summary
- Check the useful photo lossless magnification software on Apple computer
- C# AES对字符串进行加密
- JS quick start (II)
- Graduation design game mall
- 剑指 Offer II 039. 直方图最大矩形面积
- Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
猜你喜欢
![[leetcode] 18. Sum of four numbers](/img/06/c160b47d756290e5474e4c07e68648.png)
[leetcode] 18. Sum of four numbers

02. 开发博客项目之数据存储

Fiddler installed the certificate, or prompted that the certificate is invalid

Codeless June event 2022 codeless Explorer conference will be held soon; AI enhanced codeless tool launched

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

Class inheritance in yyds dry inventory C

毕业设计游戏商城

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

指针经典笔试题

03. 开发博客项目之登录
随机推荐
Postman Association
Algorithm -- climbing stairs (kotlin)
TCP three handshakes you need to know
Modbus协议通信异常
Sword finger offer II 039 Maximum rectangular area of histogram
Cuda11.1 online installation
关于Unity Inspector上的一些常用技巧,一般用于编辑器扩展或者其他
UCF(2022暑期团队赛一)
[detailed explanation of Huawei machine test] statistics of shooting competition results
Vulhub vulnerability recurrence 67_ Supervisor
Oracle deletes duplicate data, leaving only one
nacos-高可用seata之TC搭建(02)
MySQL advanced learning summary 9: create index, delete index, descending index, and hide index
Can the feelings of Xi'an version of "Coca Cola" and Bingfeng beverage rush for IPO continue?
02. 开发博客项目之数据存储
【云原生】3.1 Kubernetes平台安装KubeSpher
UCF (summer team competition II)
集合详解之 Collection + 面试题
GAMES202-WebGL中shader的編譯和連接(了解向)
nacos-高可用seata之TC搭建(02)
