This commit is contained in:
midoks
2022-11-07 09:45:30 +08:00
parent 309c4cc9f4
commit 18f320bf25
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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
+2 -1
View File
@@ -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))