为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:安装disucz时报错,已经修复过宝塔面板,再次安装还是报错
相关截图(日志、错误):TypeError: expected string or bytes-like object
Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2262, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/class/panelSite.py", line 764, in AddSite result = database.database().AddDatabase(get) File "class/database.py", line 459, in AddDatabase if self.database_exists_for_mysql(mysql_obj, data_name): return public.returnMsg(False, '指定数据库已在MySQL中存在,请换个名称!') File "class/database.py", line 493, in database_exists_for_mysql databases_tmp = self.map_to_list(mysql_obj.query('show databases')) File "class/db_mysql.py", line 406, in query if not self.__GetConn(): return self.__DB_ERR File "class/db_mysql.py", line 70, in __GetConn socket_re = re.search(r"\nsocket\s*=\s*([^\n]+)", myconf) File "/www/server/panel/pyenv/lib/python3.7/re.py", line 185, in search return _compile(pattern, flags).search(string)TypeError: expected string or bytes-like object
|
|