Update index.py

pull/256/head
midoks 3 years ago
parent 24a4640940
commit 9c99a55a4f
  1. 2
      plugins/mariadb/index.py

@ -375,7 +375,7 @@ def initMariaDbPwd():
# 删除冗余账户
hostname = mw.execShell('hostname')[0].strip()
if hostname != 'hostname':
if hostname != 'localhost':
drop_hostname = serverdir + '/bin/mysql --defaults-file=' + \
myconf + ' -uroot -p' + pwd + ' -e "drop user \'\'@\'' + hostname + '\'";'
mw.execShell(drop_hostname)

Loading…
Cancel
Save