摘要: 1.在项目根目录创建目录 mkdir -p db_backends/postgresql 2.拷贝环境中的django的backend cp venv/lib/python3.11/site-packages/django/db/backends/postgresql/*.py \ db_backe 阅读全文
posted @ 2026-04-23 13:36 JanWong 阅读(11) 评论(0) 推荐(0)
摘要: python使用psycopg2连接瀚高数据库报错psycopg2.OperationalError: authentication method 13 not supported (venv) [root@sq4112 web reress]# python Python 3.6.5 (defau 阅读全文
posted @ 2025-09-03 09:18 JanWong 阅读(27) 评论(0) 推荐(0)
摘要: 当报错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 阅读(96) 评论(0) 推荐(0)
摘要: 场景:python使用openpyxl导出excel文件提示"是否让我们尽量尝试恢复? 如果您信任此工作簿的源,请单击“是”。" 解决办法: # 将数据写入io数据流 sio = BytesIO() wb.save(sio) sio.seek(0) # 将excel数据响应回客户端 response 阅读全文
posted @ 2022-09-22 14:47 JanWong 阅读(638) 评论(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 阅读(575) 评论(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 阅读(2315) 评论(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 阅读(396) 评论(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 阅读(27482) 评论(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 阅读(2089) 评论(0) 推荐(0)
摘要: 如果命令 which 和whereis 都找不到安装目录,可使用以下办法 ps -ef|grep mysql 得到了进程号 xxxxx 然后 ls -l /proc/xxxxx/cwd 阅读全文
posted @ 2020-07-10 14:21 JanWong 阅读(423) 评论(0) 推荐(0)