mirror of
https://github.com/PlayEdu/PlayEdu
synced 2026-10-25 17:36:35 +08:00
fix(mysql): 改用 caching_sha2_password 消除 MY-013360 警告
mysql_native_password 在 MySQL 8.1 已废弃,每次连接都会刷出 deprecation 警告;Connector/J 8.x 原生支持 caching_sha2_password,可直接切换。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
299f47cbbf
commit
9ffad2175a
1 file changed
+1
-1
+1
-1
@@ -9,4 +9,4 @@ default-character-set=utf8mb4
|
||||
[mysqld]
|
||||
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
|
||||
character-set-server=utf8mb4
|
||||
default-authentication-plugin=mysql_native_password
|
||||
default-authentication-plugin=caching_sha2_password
|
||||
Reference in new issue
Block a user