diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index d881904e3..dcdf70c6f 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -1247,7 +1247,7 @@ def addDb(): reg = "^[\w-]+$" if not re.match(reg, args['name']): return mw.returnJson(False, '数据库名称不能带有特殊符号!') - checks = ['root', 'mysql', 'test', 'sys', 'panel_logs'] + checks = ['root', 'mysql', 'test', 'sys', 'performance_schema','information_schema'] if dbuser in checks or len(dbuser) < 1: return mw.returnJson(False, '数据库用户名不合法!') if dbname in checks or len(dbname) < 1: diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index c9b538c25..572220657 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1571,7 +1571,7 @@ def addDb(): reg = "^[\w-]+$" if not re.match(reg, args['name']): return mw.returnJson(False, '数据库名称不能带有特殊符号!') - checks = ['root', 'mysql', 'test', 'sys', 'panel_logs'] + checks = ['root', 'mysql', 'test', 'sys', 'performance_schema','information_schema'] if dbuser in checks or len(dbuser) < 1: return mw.returnJson(False, '数据库用户名不合法!') if dbname in checks or len(dbname) < 1: