行到水穷处,坐看云起时
发布时间:2015-06-09 15:34:57
alter table tableName | add {index|key} [index_name] [index_type] (index_col_name,...) [index_option] ... algorithm [=] {default | inplace | copy} lock [=] {default | none | shared | exclusive}innodb_online_alter_log_max_size:innodb实现online ddl在执行创建或者删除的时候,.........【阅读全文】
发布时间:2015-06-09 10:04:55
mysql -hlocalhost -uroot -ppassword launcher -s -e "show processlist" | awk '{if(index($3,":") > 0){total[substr($3,0,(index($3,":"))-1)]+=1}else{total[$3]+=1}}END{for (a in total)print a,total[a]}'......【阅读全文】
发布时间:2015-01-20 16:13:59
进入MySQL安装目录执行 scripts/mysql_install_db --datadir=/usr/local/mysql/data (替换成数据库文件目录)然后启动mysql服务器,成功。 ......【阅读全文】
发布时间:2014-11-29 17:32:44
/* 数据库总存储空间 */select sum(data_length+index_length) size from information_schema.tables;/* 不同数据库的存储空间 */select table_schema,sum(data_length+index_length) size from information_schema.tables group by table_schema order by size desc;/* 指定库下不同表的存储空间 */select table_.........【阅读全文】