-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated setup instructions to reflect the requirement for MySQL 9, removing references to MySQL 5.7 and 8. - Removed outdated troubleshooting information related to MySQL 8 authentication issues. - **Chores** - Updated `.gitignore` to include `.egg/` and improved formatting for `.DS_Store`. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
2 changed files
with
5 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,3 +120,5 @@ dist | |
.DS_Store | ||
run | ||
!test/ctx_register.js | ||
|
||
.egg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,38 +21,11 @@ $ docker-compose down | |
|
||
假设大家使用 macOS 开发,Linux 和 Windows 环境自行参考。 | ||
|
||
### MySQL 5.7 | ||
### MySQL 9 | ||
|
||
```bash | ||
$ brew install [email protected] | ||
$ brew services start mysql | ||
``` | ||
|
||
### MySQL 8 | ||
|
||
```bash | ||
$ brew install mysql | ||
$ brew services start mysql | ||
``` | ||
|
||
如果遇到以下异常 | ||
|
||
```log | ||
Uncaught Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client | ||
``` | ||
|
||
需要先确认安装的 MySQL 版本,如果是 8.x,在执行时可能会报错不支持此种鉴权方式,需要改一下 MySQL 设置 | ||
|
||
```bash | ||
# 登录数据库 | ||
mysql -u root | ||
|
||
> use mysql; | ||
> update user set plugin='mysql_native_password' where user='root'; | ||
> quit; | ||
|
||
# 重启 MySQL | ||
brew services restart mysql | ||
brew install mysql | ||
brew services start mysql | ||
``` | ||
|
||
### Redis | ||
|