From 18f320bf2530429ac2e5822ad5fd44096e98cbda Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 7 Nov 2022 09:45:30 +0800 Subject: [PATCH] up --- plugins/mysql-apt/conf/my8.0.cnf | 2 +- plugins/mysql-apt/index.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/mysql-apt/conf/my8.0.cnf b/plugins/mysql-apt/conf/my8.0.cnf index cfeb6be02..8488245cb 100644 --- a/plugins/mysql-apt/conf/my8.0.cnf +++ b/plugins/mysql-apt/conf/my8.0.cnf @@ -24,7 +24,7 @@ read_buffer_size = 128K read_rnd_buffer_size = 256K myisam_sort_buffer_size = 4M thread_cache_size = 4 -lower_case_table_names=1 +lower_case_table_names=0 tmp_table_size = 8M character-set-server = UTF8MB4 diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index 308528395..8890fc9e6 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -290,7 +290,8 @@ def initMysql8Data(): serverdir = getServerDir() user = pGetDbUser() - cmd = 'mysqld --basedir=/usr --datadir=' + datadir + ' --initialize-insecure' + cmd = 'mysqld --basedir=/usr --datadir=' + datadir + \ + ' --initialize-insecure --lower-case-table-names=1' data = mw.execShell(cmd) if data[1].find('ERROR') != -1: exit("Init MySQL{} Data Error".format(8))