数据库

Sql Snippets

388 words
Show MySQL processlist SHOW FULL PROCESSLIST Check Binlog show variables like 'log_bin' show tables SHOW TABLES command provides you with an option that allows you to filter the returned tables using the LIKE operator or an expression in the WHERE clause as follows: SHOW TABLES LIKE pattern; SHOW TABLES WHERE expression; > SHOW TABLES LIKE 'p%'; +------------------------------+ | Tables_in_testdb (p%) | +------------------------------+ | productlines | | products | +------------------------------+ 2

Django数据库连接池

4025 words
数据库长连接 长连接是指程序之间的连接在建立之后,就一直打开,被后续程序重用。使用长连接的初衷是减少连接的开销。 先看看官方文档是怎么讲Djan

MySQL优化思路

11647 words
MySQL的存储引擎 Innodb存储引擎 InnoDB存储引擎的优点是:InnoDB存储引擎的优点有支持事务、支持行级锁、支持外键、支持崩溃修