当前位置:网站首页>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 .
边栏推荐
- 【torch】|torch. nn. utils. clip_ grad_ norm_
- 【云原生】3.1 Kubernetes平台安装KubeSpher
- Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
- Sword finger offer II 039 Maximum rectangular area of histogram
- [leetcode16] the sum of the nearest three numbers (double pointer)
- flutter 实现一个有加载动画的按钮(loadingButton)
- [detailed explanation of Huawei machine test] statistics of shooting competition results
- nacos-高可用seata之TC搭建(02)
- Note the various data set acquisition methods of jvxetable
- Vite configures the development environment and production environment
猜你喜欢
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
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
February 12 relativelayout
【torch】|torch. nn. utils. clip_ grad_ norm_
Fluent implements a loadingbutton with loading animation
Leetcode dynamic planning day 16
[leetcode16] the sum of the nearest three numbers (double pointer)
Notes, continuation, escape and other symbols
注释、接续、转义等符号
Zoom and pan image in Photoshop 2022
随机推荐
【华为机试真题详解】检查是否存在满足条件的数字组合
2022 half year summary
指针经典笔试题
SQLite add index
Vulhub vulnerability recurrence 72_ uWSGI
Postman Association
UCF(暑期团队赛二)
Review of double pointer problems
Modbus协议通信异常
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
Figure database ongdb release v-1.0.3
自建DNS服务器,客户端打开网页慢,解决办法
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
JS quick start (II)
Force buckle 1189 Maximum number of "balloons"
Using stopwatch to count code time
RT thread analysis - object container implementation and function
Jvxetable用slot植入j-popup
Excel转换为Lua的配置文件
C AES encrypts strings