摘要: 当我们使用SQLAlchemy库来连接和管理MySQL数据库时,有时候会遇到这样的错误信息:AttributeError: 'Engine'对象没有'execute'属性。该错误通常出现在我们尝试执行SQL语句时。 错误的原因 出现这个错误的原因通常是因为我们直接在Engine对象上调用execut 阅读全文
posted @ 2024-04-29 06:49 Excel2016 阅读(1) 评论(0) 推荐(0) 编辑
摘要: RuntimeError: The current Flask app is not registered with this 'SQLAlchemy' instance. Did you forget to call 'init_app', or did you create multiple ' 阅读全文
posted @ 2024-04-29 05:48 Excel2016 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 在菜单栏选择file-properties(文件-属性),设置Appearance-font-name(外观),设置字体,不要选择@开始的字体 阅读全文
posted @ 2024-04-24 20:59 Excel2016 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 如果MySQL数据库用户的密码设置过于简单,数据库在用户登录后会提示重置密码,并且不接受简单的密码。 提示需要重置密码: ERROR 1820 (HY000): You must reset your password using ALTER USER statement before execut 阅读全文
posted @ 2024-04-23 14:49 Excel2016 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 输入service mysqld start报错 报这个错多半是没有安装成功在yum install mysql-community-server的时候报错 The GPG keys listed for the "MySQL 5.7 Community Server" repository are 阅读全文
posted @ 2024-04-23 02:45 Excel2016 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 一、前言 本文已CenOS 7为例说明如果设置VirtualBox共享文件夹。 二、安装虚拟机增强插件 找到增强插件镜像文件 在VirtualBox的安装目录下找到虚拟机增强插件安装镜像文件VBoxGuestAdditions。 我的VirtualBox安装目录在D:\Oracle\VirtualB 阅读全文
posted @ 2024-04-23 00:29 Excel2016 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原因 国内使用官方的pypi源不稳定,经常出现timeout的情况,所以使用阿里的源代替 方法 新建配置文件 Window下: %APPDATA%\pip\pip.ini Linux下: ~/.pip/pip.conf 内容 [global] timeout = 60 index-url = htt 阅读全文
posted @ 2024-04-22 03:34 Excel2016 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 一.安装环境: Linux系统:centos7,可以正常访问互联网。 python版本:3.12.3,建议网工直接就是安装python3的最新版本,毕竟python2和我们网工更不相关了。 环境最基本的就这些了 二.安装步骤 1.安装python3: 不多说,直接上安装过程~ #只是将python3 阅读全文
posted @ 2024-04-22 02:56 Excel2016 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1 column “datlastsysoid“ does not exist 2 Line1:SELECT DISTINCT datalastsysoid FROM pg_database 问题分析 Postgres 15 从pg_database表中删除了 datlastsysoid 字段引发此 阅读全文
posted @ 2024-04-17 16:41 Excel2016 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Windows下免安装postgresql,并注册成服务 最近做的一些产品,需要内置postgre数据库,肯定是希望到时候一键启动,直接注册成服务,不需要用户再去安装,所以倒腾了半天, 网上找了很多资料,但是感觉都不是很全面,现在记录一下。 下载postgre包 下载地址:https://www.p 阅读全文
posted @ 2024-04-17 14:21 Excel2016 阅读(3) 评论(0) 推荐(0) 编辑