浏览代码

update default_authentication_plugin

In MySQL 8.0, caching_sha2_password is the default authentication plugin rather than mysql_native_password.When it is actually used, it is found that it is not possible to login to MySQL without using encryption. For example, phpMyAdmin.
Seon 7 年之前
父节点
当前提交
7e5a018d25
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/mysql-8.0.sh

+ 2 - 0
include/mysql-8.0.sh

@@ -90,6 +90,8 @@ server-id = 1
 init-connect = 'SET NAMES utf8mb4'
 init-connect = 'SET NAMES utf8mb4'
 character-set-server = utf8mb4
 character-set-server = utf8mb4
 
 
+default_authentication_plugin=mysql_native_password
+
 skip-name-resolve
 skip-name-resolve
 #skip-networking
 #skip-networking
 back_log = 300
 back_log = 300