当前位置:网站首页>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 .
边栏推荐
- 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
- C Advanced - data storage (Part 1)
- 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
- 浅谈镜头滤镜的类型及作用
- Hometown 20 years later (primary school exercises)
- SQLite queries the maximum value and returns the whole row of data
- [mask requirements of OSPF and Isis in multi access network]
- JDBC calls the stored procedure with call and reports an error
- 指针经典笔试题
猜你喜欢
[leetcode16] the sum of the nearest three numbers (double pointer)
Three methods of Oracle two table Association update
Imperial cms7.5 imitation "D9 download station" software application download website source 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
【云原生】3.1 Kubernetes平台安装KubeSpher
Figure database ongdb release v-1.0.3
pix2pix:使用条件对抗网络的图像到图像转换
【torch】|torch. nn. utils. clip_ grad_ norm_
Vulhub vulnerability recurrence 68_ ThinkPHP
Codeless June event 2022 codeless Explorer conference will be held soon; AI enhanced codeless tool launched
随机推荐
Unity Vector3. Use and calculation principle of reflect
Questions d'examen écrit classiques du pointeur
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
Microblogging hot search stock selection strategy
Algorithm -- climbing stairs (kotlin)
nacos-高可用seata之TC搭建(02)
Principle and performance analysis of lepton lossless compression
Notes, continuation, escape and other symbols
A little knowledge of CPU, disk and memory
Vulhub vulnerability recurrence 72_ uWSGI
Imperial cms7.5 imitation "D9 download station" software application download website source code
Hometown 20 years later (primary school exercises)
Simple understanding of interpreters and compilers
Codeless June event 2022 codeless Explorer conference will be held soon; AI enhanced codeless tool launched
Excel转换为Lua的配置文件
Talking about the type and function of lens filter
组播和广播的知识点梳理
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Note the various data set acquisition methods of jvxetable
Easy to understand I2C protocol