当前位置:网站首页>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 .
边栏推荐
- Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
- 【华为机试真题详解】检查是否存在满足条件的数字组合
- 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
- Using stopwatch to count code time
- Three. JS learning - light and shadow (understanding)
- [mask requirements of OSPF and Isis in multi access network]
- 【云原生】3.1 Kubernetes平台安装KubeSpher
- Promotion hung up! The leader said it wasn't my poor skills
- Pickle and savez_ Compressed compressed volume comparison
- C AES encrypts strings
猜你喜欢
Modbus协议通信异常
Questions d'examen écrit classiques du pointeur
【torch】|torch.nn.utils.clip_grad_norm_
Graduation design game mall
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
TCP three handshakes you need to know
Vulhub vulnerability recurrence 72_ uWSGI
GAMES202-WebGL中shader的编译和连接(了解向)
ByteDance program yuan teaches you how to brush algorithm questions: I'm not afraid of the interviewer tearing the code
RT thread analysis - object container implementation and function
随机推荐
Pix2pix: image to image conversion using conditional countermeasure networks
02. 开发博客项目之数据存储
改善Jpopup以实现动态控制disable
【torch】|torch. nn. utils. clip_ grad_ norm_
HAC cluster modifying administrator user password
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
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 AES encrypts strings
Notes, continuation, escape and other symbols
Pickle and savez_ Compressed compressed volume comparison
Drive development - the first helloddk
Class inheritance in yyds dry inventory C
TCP three handshakes you need to know
RT thread analysis log system RT_ Kprintf analysis
Cve-2019-11043 (PHP Remote Code Execution Vulnerability)
Postman Association
Jvxetable implant j-popup with slot
EditorUtility. The role and application of setdirty in untiy
[QNX Hypervisor 2.2用户手册]6.3.3 使用共享内存(shmem)虚拟设备