12 2015 档案
摘要:mysql -h192.168.1.27 -P3306 -uroot -proot显示最大连接数show variables like '%max_connections%';设置最大链接数set global max_connections=2000;//默认100--只对当前进程有效,服务重启还...
阅读全文
摘要:SELECT CONCAT('drop table ', table_name, ';') FROM information_schema.tables WHERE table_name LIKE '表前缀%' AND table_schema = '表空间名' 批量修改表名:SELE...
阅读全文
摘要:主表,从表【MySql】//http://my.oschina.net/cart/blog/277624空、RESTRICT、NO ACTION删除:从表记录不存在时,主表才可以删除。删除从表,主表不变更新:从表记录不存在时,主表才可以更新。更新从表,主表不变//http://my.oschina....
阅读全文