Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jan 3, 2025
1 parent 8879cba commit 24746da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/mysql-community/conf/my8.0.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ default-character-set = UTF8MB4
[mysqld]
!include {$SERVER_APP_PATH}/etc/mode/classic.cnf

authentication_policy=mysql_native_password
#authentication_policy=mysql_native_password
default-authentication-plugin=mysql_native_password

pid-file = {$SERVER_APP_PATH}/data/mysql.pid
user = mysql
port = 33206
Expand Down
5 changes: 5 additions & 0 deletions plugins/mysql-community/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ def getAuthPolicy():
tmp = re.search(rep, content)
if tmp:
return tmp.groups()[0].strip()

rep2 = r'default-authentication-plugin\s*=\s*(.*)'
tmp2 = re.search(rep, content)
if tmp2:
return tmp2.groups()[0].strip()
# caching_sha2_password
return 'mysql_native_password'

Expand Down
1 change: 1 addition & 0 deletions plugins/mysql-community/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ serverPath=$(dirname "$rootPath")
# https://downloads.mysql.com/archives/community/

# SHOW VARIABLES LIKE 'default_authentication_plugin';
# SELECT user, host, plugin FROM mysql.user;

# /www/server/mysql-community/bin/mysqld --basedir=/www/server/mysql-community --datadir=/www/server/mysql-community/data --initialize-insecure --explicit_defaults_for_timestamp

Expand Down

0 comments on commit 24746da

Please sign in to comment.