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:
xxxandClaude Opus 4.7 committed 2026-05-13 22:22:20 -07:00
1 parent 299f47cbbf
commit 9ffad2175a
1 file changed
+1 -1
+1 -1
View File
@@ -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