当前位置:网站首页>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 .
边栏推荐
- Oracle deletes duplicate data, leaving only one
- nacos-高可用seata之TC搭建(02)
- GAMES202-WebGL中shader的編譯和連接(了解向)
- 【OSPF 和 ISIS 在多路访问网络中对掩码的要求】
- Jvxetable implant j-popup with slot
- Summary of redis basic knowledge points
- Principle and performance analysis of lepton lossless compression
- HAC cluster modifying administrator user password
- Detailed summary of SQL injection
- 04. 项目博客之日志
猜你喜欢
Compilation et connexion de shader dans games202 - webgl (comprendre la direction)
Postman Association
Summary of deep learning tuning tricks
Three methods of Oracle two table Association update
nacos-高可用seata之TC搭建(02)
[leetcode daily question] number of enclaves
自建DNS服务器,客户端打开网页慢,解决办法
剑指 Offer II 039. 直方图最大矩形面积
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
In 2022, we must enter the big factory as soon as possible
随机推荐
Safe mode on Windows
[leetcode16] the sum of the nearest three numbers (double pointer)
pix2pix:使用条件对抗网络的图像到图像转换
[cloud native] 3.1 kubernetes platform installation kubespher
Compilation et connexion de shader dans games202 - webgl (comprendre la direction)
2022半年总结
Select knowledge points of structure
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
C Advanced - data storage (Part 1)
UCF (2022 summer team competition I)
Improve jpopup to realize dynamic control disable
[effective Objective-C] - memory management
Vite configures the development environment and production environment
Summary of deep learning tuning tricks
Mongodb basic knowledge summary
JS quick start (II)
Jvxetable implant j-popup with slot
SQLite add index
[QNX Hypervisor 2.2用户手册]6.3.3 使用共享内存(shmem)虚拟设备
Talking about the type and function of lens filter