diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index ac375630a..705784431 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -514,11 +514,11 @@ def initMysqlPwd(): hostname = mw.execShell('hostname')[0].strip() if hostname != 'localhost': drop_hostname = serverdir + '/bin/mysql --defaults-file=' + \ - myconf + ' -uroot -p' + pwd + ' -e "drop user \'\'@\'' + hostname + '\'";' + myconf + ' -uroot -p"' + pwd + '" -e "drop user \'\'@\'' + hostname + '\'";' mw.execShell(drop_hostname) drop_root_hostname = serverdir + '/bin/mysql --defaults-file=' + \ - myconf + ' -uroot -p' + pwd + ' -e "drop user \'root\'@\'' + hostname + '\'";' + myconf + ' -uroot -p"' + pwd + '" -e "drop user \'root\'@\'' + hostname + '\'";' mw.execShell(drop_root_hostname) pSqliteDb('config').where('id=?', (1,)).save('mysql_root', (pwd,))