摘要: mysql如何删除一条记录 delete from 表名 where 条件 实例: use db1 delete from tb1 where id = 1; 阅读全文
posted @ 2019-02-17 23:14 effortsing 阅读(2204) 评论(0) 推荐(0) 编辑
摘要: 查看日志: tail -f /usr/local/mycat/logs/wrapper.log 阅读全文
posted @ 2019-02-17 21:47 effortsing 阅读(2240) 评论(0) 推荐(0) 编辑
摘要: 给数据库授权,否则程序、navicat无法连接test1数据库的 mysql> grant all privileges on test1.* TO 'root'@'%' identified by 'jenkins@123' with grant option; Query OK, 0 rows affected, 1 warning (0.01 sec) mysql> flush pri... 阅读全文
posted @ 2019-02-17 19:00 effortsing 阅读(534) 评论(0) 推荐(0) 编辑
摘要: mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select host, user from use... 阅读全文
posted @ 2019-02-17 15:10 effortsing 阅读(578) 评论(0) 推荐(0) 编辑
摘要: ORM 直接使用sql语句虽然方便,但缺点是如果要更换数据库可能还需要修改程序中的Sql语句。为了解决这个问题,出现了ORM。在Python语言中使用ORM有多种选择,都是通过模块支持的。 比较著名的有SQLAlchemy和SQLObject,SQLObject比SQLAlchemy简单的多,但是网上实例太少,所以建议使用SQLAlchemy SQLAlchemy模式 首先安装所需模块... 阅读全文
posted @ 2019-02-17 09:42 effortsing 阅读(248) 评论(0) 推荐(0) 编辑