摘要: 当报错3948, 'Loading local data is disabled; this must be enabled on both the client and server sides'时需程序双端开启 local_infile = True 阅读全文
posted @ 2023-07-14 09:01 JanWong 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 场景:python使用openpyxl导出excel文件提示"是否让我们尽量尝试恢复? 如果您信任此工作簿的源,请单击“是”。" 解决办法: # 将数据写入io数据流 sio = BytesIO() wb.save(sio) sio.seek(0) # 将excel数据响应回客户端 response 阅读全文
posted @ 2022-09-22 14:47 JanWong 阅读(202) 评论(0) 推荐(0) 编辑
摘要: error: Failed dependencies: libmysqlclient.so.20()(64bit) is needed by mysql-community-devel-5.7.30-1.el7.x86_64 mysql-community-libs(x86-64) >= 5.7.9 阅读全文
posted @ 2022-05-06 14:06 JanWong 阅读(394) 评论(0) 推荐(0) 编辑
摘要: mysql 修改密码后,原来没断开的连接依旧可以连接 一:登陆mysql [root@iZ2ze ~]# mysql -u root -p Enter password: 二:进入mysql库 mysql> use mysql 三: 修改密码 mysql> set global validate_p 阅读全文
posted @ 2020-11-06 14:57 JanWong 阅读(1758) 评论(0) 推荐(0) 编辑
摘要: xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist error: command 'gcc' failed with exit status 1 直接在终端 阅读全文
posted @ 2020-10-20 15:53 JanWong 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 一: 安装virtualenv pip install virtualenv 二: 创建虚拟环境并指定python版本 virtualenv venv --python=pythonx.x.x 三: 进入虚拟环境 source venv/bin/activate 四: 退出虚拟环境 deactiva 阅读全文
posted @ 2020-10-16 09:03 JanWong 阅读(16587) 评论(0) 推荐(0) 编辑
摘要: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODU 阅读全文
posted @ 2020-08-17 16:44 JanWong 阅读(1919) 评论(0) 推荐(0) 编辑
摘要: 如果命令 which 和whereis 都找不到安装目录,可使用以下办法 ps -ef|grep mysql 得到了进程号 xxxxx 然后 ls -l /proc/xxxxx/cwd 阅读全文
posted @ 2020-07-10 14:21 JanWong 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 话不多说直接上代码 封装连接 @staticmethod def connect(ip, server_user, server_port, server_path): """ 连接服务器 :param : :return: """ ssh = paramiko.SSHClient() privat 阅读全文
posted @ 2019-11-07 10:41 JanWong 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 我的后端使用的flask_socketio做服务端 前端使用的vue_socketio当客户端 vue.config.js配置 module.exports = { outputDir: process.env.outputDir, assetsDir: 'static', publicPath: 阅读全文
posted @ 2019-10-14 19:52 JanWong 阅读(11216) 评论(2) 推荐(0) 编辑