【待反馈】宝塔计划任务里面备份数据库失败
https://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310230022305.png您好,此问题是缺少了PyMySQL模块所以导致运行代码是无法识别到PyMySQL模块库文件,您到服务器命令行下执行下面命令安装然后重新备份:
btpip install PyMySQL 谢花郎 发表于 2023-10-23 09:10
您好,此问题是缺少了PyMySQL模块所以导致运行代码是无法识别到PyMySQL模块库文件,您到服务器命令行下执行 ...
https://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310231325293.pnghttps://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310231326188.png执行你上面的指令后出来这个 cgxy120 发表于 2023-10-23 13:29
执行你上面的指令后出来这个
您好,您尝试在终端执行下述命令,然后执行重启下面板服务看看是否能正常使用
btpip install PyMySQL
重启面板
bt 1 我执行btpip installpymysql后,面板也重启了报错
https://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310231325293.png
https://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310231326188.png
我执行命令后的截图好像是pip版本需要升级是吧
https://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310231719617.png
# btpip install PyMySQL
Requirement already satisfied: PyMySQL in /www/server/panel/pyenv/lib/python3.7/site-packages (1.0.1)
WARNING: You are using pip version 20.3.3; however, version 23.3.1 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
堡塔运维香菜卷 发表于 2023-10-23 14:10
您好,您尝试在终端执行下述命令,然后执行重启下面板服务看看是否能正常使用
重启面板
我执行btpip installpymysql后,面板也重启了报错数据库现在完全打不开了https://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310231325293.pnghttps://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310231326188.png
我执行命令后的截图好像是pip版本需要升级是吧
https://tuchuang-1300681338.cos.ap-hongkong.myqcloud.com/%E5%9B%BE%E5%BA%8A/202310231719617.png
# btpip install PyMySQL
Requirement already satisfied: PyMySQL in /www/server/panel/pyenv/lib/python3.7/site-packages (1.0.1)
WARNING: You are using pip version 20.3.3; however, version 23.3.1 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
cgxy120 发表于 2023-10-23 23:44
我执行btpip installpymysql后,面板也重启了报错数据库现在完全打不开了
您好,您到服务器SSH终端中执行下面命令(非面板终端)修复面板
备份之前无法使用的面板环境(如果这一步提示文件不存在的话,请执行第二条命令)
mv /www/server/panel/pyenv /root/pyenv_bak
重新获取新的面板环境和更新包
curl http://download.bt.cn/install/update_panel.sh|bash
此更新不会对您的数据造成影响,仅仅更新面板程序 问题解决了吗楼主
页:
[1]