This commit is contained in:
midoks
2022-07-06 13:43:03 +08:00
parent ab748bbaf8
commit d0c6408878
2 changed files with 4 additions and 5 deletions
+1 -3
View File
@@ -163,7 +163,7 @@ def initDreplace(version=''):
if mw.getOs() != 'darwin':
mw.execShell('chown -R mysql mysql ' + getServerDir())
return file_bin
return 'ok'
def status(version=''):
@@ -324,8 +324,6 @@ def initMysql8Pwd():
def my8cmd(version, method):
# mysql 8.0 and 5.7
init_file = initDreplace(version)
cmd = init_file + ' ' + method
try:
if version == '5.7':
isInited = initMysql57Data()
+3 -2
View File
@@ -9,6 +9,7 @@ serverPath=$(dirname "$rootPath")
# cd /www/server/mdserver-web/plugins/mysql-ya && bash install.sh install 8.0
# cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/mysql-ya/index.py start 8.0
install_tmp=${rootPath}/tmp/mw_install.pl
@@ -33,6 +34,6 @@ sh -x $curPath/versions/$2/install.sh $1
# if [ "${action}" == "install" ];then
# #初始化
# cd ${rootPath} && python3 ${rootPath}/plugins/mysql/index.py start ${type}
# cd ${rootPath} && python3 ${rootPath}/plugins/mysql/index.py initd_install ${type}
# cd ${rootPath} && python3 ${rootPath}/plugins/mysql-ya/index.py start ${type}
# cd ${rootPath} && python3 ${rootPath}/plugins/mysql-ya/index.py initd_install ${type}
# fi