随笔分类 -  数据库

【数据库】mysql数据库缓存
摘要:配置文件在 /etc/mysql/my.cnf ################### 第一部分:查询数据库缓存相关变量 ################### show variables like "%query_cache%" query_cache_limit:允许 Cache 的单条 Qu 阅读全文

posted @ 2016-11-30 13:16 yesuuu 阅读(3459) 评论(0) 推荐(0)

【数据库】python访问mysql
摘要:import MySQLdb 所有的数据库遵循相同的python database API 需要建立connection对象连接数据库,之后建立cursor对象处理数据。 conn = MySQLdb.Connect(host=, port=, user=, passwd=, db=, charse 阅读全文

posted @ 2016-08-02 21:02 yesuuu 阅读(131) 评论(0) 推荐(0)

导航