pull/642/head
Mr Chen 5 months ago
parent 6ff1781372
commit 49924c6b2b
  1. 1
      plugins/mysql-apt/index.py
  2. 1
      plugins/mysql-apt/versions/8.0/install.sh

@ -446,6 +446,7 @@ def initMysql8Data():
cmd = serverdir + '/bin/usr/sbin/mysqld --basedir=' + serverdir + '/bin/usr --datadir=' + datadir + \
' --initialize-insecure --lower-case-table-names=1'
data = mw.execShell(cmd)
if data[1].lower().find('error') != -1:
exit("Init MySQL8+ Data Error:"+data[1])

@ -20,6 +20,7 @@ OSNAME=`cat ${rootPath}/data/osname.pl`
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
# cd /www/server/mdserver-web/plugins/mysql-apt && bash install.sh install 8.0
# cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/mysql-apt/index.py start 8.0
# 暂时debian12没有标准版,先用11使用
# if [ "$OSNAME" == 'debian' ] && [ "$VERSION_ID" == '12' ] ;then

Loading…
Cancel
Save