当前位置:网站首页>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 .
边栏推荐
- Collection + interview questions
- 浅谈镜头滤镜的类型及作用
- JS quick start (II)
- Compilation et connexion de shader dans games202 - webgl (comprendre la direction)
- HAC cluster modifying administrator user password
- 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
- Fiddler installed the certificate, or prompted that the certificate is invalid
- C# AES对字符串进行加密
- [detailed explanation of Huawei machine test] statistics of shooting competition results
- Safe mode on Windows
猜你喜欢

In 2022, we must enter the big factory as soon as possible

Compilation and connection of shader in games202 webgl (learn from)

Huawei equipment is configured with OSPF and BFD linkage

Class inheritance in yyds dry inventory C

Figure database ongdb release v-1.0.3

04. Project blog log

04. 项目博客之日志

Golang -- TCP implements concurrency (server and client)

【LeetCode】18、四数之和

Principle and performance analysis of lepton lossless compression
随机推荐
EditorUtility. The role and application of setdirty in untiy
指針經典筆試題
[untitled]
F12 solve the problem that web pages cannot be copied
ByteDance program yuan teaches you how to brush algorithm questions: I'm not afraid of the interviewer tearing the code
First acquaintance with CDN
JDBC calls the stored procedure with call and reports an error
UCF (summer team competition II)
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
Pointer classic written test questions
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
Driver development - hellowdm driver
Drive development - the first helloddk
Fuzzy -- basic application method of AFL
[leetcode daily question] number of enclaves
SQLite add index
【torch】|torch.nn.utils.clip_grad_norm_
[QNX Hypervisor 2.2用户手册]6.3.3 使用共享内存(shmem)虚拟设备
CUDA11.1在线安装
Principle and performance analysis of lepton lossless compression
