Browse Source

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 years ago
parent
commit
7e5a018d25
1 changed files with 2 additions and 0 deletions
  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'
 character-set-server = utf8mb4
 
+default_authentication_plugin=mysql_native_password
+
 skip-name-resolve
 #skip-networking
 back_log = 300