随笔分类 - DataBase or Database technology(数据库、数据库技术)
摘要:drop性能drop table(innodb引擎) 数量2000w,只需要5m
阅读全文
posted @ 2014-11-09 09:33
程序员斯文
摘要:http://hi.baidu.com/wylinux/item/cbc458c2984381300831c651查看索引命令mysql> show index from tblname;mysql> show keys from tblname;· Table表的名称。· Non_unique如果...
阅读全文
posted @ 2014-11-09 09:33
程序员斯文
摘要:修改表引擎方法方法1:修改mysql.ini配置文件,重启mysql服务生效修改my.ini,在[mysqld]下加上default-storage-engine=INNODB其中红色字体部分是要指定的引擎名称。用sql语句修改已经建成表的引擎:alter table tableName type=...
阅读全文
posted @ 2014-11-09 09:32
程序员斯文
摘要:http://blog.chinaunix.net/uid-23354495-id-3188029.htmlmysql备份脚本之select into outfile
阅读全文
posted @ 2014-11-09 09:32
程序员斯文
摘要:PRI主键约束;UNI唯一约束;MUL可以重复。参考:http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html
阅读全文
posted @ 2014-11-09 09:32
程序员斯文
摘要:http://blog.csdn.net/acmain_chm/article/details/4174186
阅读全文
posted @ 2014-11-09 09:31
程序员斯文
摘要:http://www.blogjava.net/jiangshachina/archive/2009/05/31/279288.html酷壳 -MySQL: InnoDB 还是 MyISAM?51cto -InnoDB还是MyISAM 再谈MySQL存储引擎的选择MyISAM VS InnoDB —...
阅读全文
posted @ 2014-11-09 09:30
程序员斯文
摘要:http://blog.51yip.com/mysql/949.htmlCSDN -Mysql MERGE分表对大数据量的处理实战经验:要分表的表引擎必须是myisam类型的,用innodb引擎用不了merge方法。
阅读全文
posted @ 2014-11-09 09:29
程序员斯文
摘要:http://blog.sina.com.cn/s/blog_68431a3b0100y04v.html方法1:truncate table 你的表名//这样不但将数据全部删除,而且重新定位自增的字段方法2:delete from 你的表名dbcc checkident(你的表名,reseed,0)...
阅读全文
posted @ 2014-11-09 09:28
程序员斯文
摘要:http://kb.cnblogs.com/a/2357592/很多情况下,我们要提前用到当前某个表的auto_increment自增列id,可以通过执行sql语句来查询到这个id值。show table status where name=’表名’或者show table status like ...
阅读全文
posted @ 2014-11-09 09:27
程序员斯文
摘要:http://blog.chinaacc.com/garfiled606/blog/20100119-1909060539272.html客户端连接:进入命令行,windows cmd,连接:mysql -u 用户名 -p密码 -h 服务器IP地址 -P 服务器端MySQL端口号 -D 数据库名注意...
阅读全文
posted @ 2014-11-09 09:27
程序员斯文
摘要:http://philos.iteye.com/blog/162051实战代码:#mysql导入mysql -um4n -p01D060A476642BA8335B832AC5B211F222F641B5 -h192.168.1.175 -D sse_db < 33002.bbs.ids_final...
阅读全文
posted @ 2014-11-09 09:26
程序员斯文
摘要:http://isky000.com/database/mysql-performance-tuning-sql
阅读全文
posted @ 2014-11-09 09:26
程序员斯文
摘要:http://blog.sina.com.cn/s/blog_6128a8f00100wsdd.html数据库出现大量的freeing items状态 表更新慢 而且大量锁表查看mysql官方freeing items状态说明The thread has executed a command. Th...
阅读全文
posted @ 2014-11-09 09:25
程序员斯文
摘要:http://www.cnblogs.com/pcdelphi/archive/2009/10/31/2017990.html实战经验:>登录到mysql数据库的终端>show status;结果:看到Threads开头的没,Threads_connected就是当前的连接数其他的看英文就懂了吧.s...
阅读全文
posted @ 2014-11-09 09:25
程序员斯文
摘要:http://blog.csdn.net/wh62592855/article/details/6777753mysql下的加密函数有如下几个PASSWORD():创建一个经过加密的密码字符串,适合于插入到MySQL的安全系统。该加密过程不可逆,和unix密码加密过程使用不同的算法。主要用于MySQ...
阅读全文
posted @ 2014-11-09 09:24
程序员斯文
摘要:关闭binlog,注释掉mysql配置文件中的log-bin=mysql-bin即可baidu zone -关闭binlog方法cnblogs -linux下mysql配置文件my.cnf详解ChinaUnix Blog - 设置自动清理mysql binlog日志和手动删除的方法51cto -删除...
阅读全文
posted @ 2014-11-09 09:24
程序员斯文
摘要:http://www.cnblogs.com/ggjucheng/archive/2012/11/07/2758021.htmlcnblogs -FLUSH TABLES WITH READ LOCK有多快cnblogs - MySQL的FLUSH用法
阅读全文
posted @ 2014-11-09 09:23
程序员斯文
浙公网安备 33010602011771号