当前位置:网站首页>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 .
边栏推荐
- Graduation design game mall
- HAC cluster modifying administrator user password
- 02. 开发博客项目之数据存储
- 备忘一下jvxetable的各种数据集获取方法
- C进阶-数据的存储(上)
- Self built DNS server, the client opens the web page slowly, the solution
- 关于Unity Inspector上的一些常用技巧,一般用于编辑器扩展或者其他
- [detailed explanation of Huawei machine test] statistics of shooting competition results
- pix2pix:使用条件对抗网络的图像到图像转换
- Collection + interview questions
猜你喜欢
nacos-高可用seata之TC搭建(02)
Can the feelings of Xi'an version of "Coca Cola" and Bingfeng beverage rush for IPO continue?
Ora-01779: the column corresponding to the non key value saving table cannot be modified
Modbus protocol communication exception
自建DNS服务器,客户端打开网页慢,解决办法
Review of double pointer problems
Unity Vector3. Use and calculation principle of reflect
Vulhub vulnerability recurrence 71_ Unomi
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Fiddler installed the certificate, or prompted that the certificate is invalid
随机推荐
GAMES202-WebGL中shader的编译和连接(了解向)
C# AES对字符串进行加密
pix2pix:使用条件对抗网络的图像到图像转换
Vulhub vulnerability recurrence 73_ Webmin
Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
05. 博客项目之安全
Rce code and Command Execution Vulnerability
In 2022, we must enter the big factory as soon as possible
初识CDN
TCP three handshakes you need to know
01. 开发博客项目之项目介绍
Safe mode on Windows
UCF (summer team competition II)
Oracle query table index, unique constraint, field
JDBC calls the stored procedure with call and reports an error
F12 solve the problem that web pages cannot be copied
EditorUtility.SetDirty在Untiy中的作用以及应用
Mongodb basic knowledge summary
浅谈镜头滤镜的类型及作用
February 12 relativelayout