摘要: MySQL中导出CSV格式数据的SQL语句样本如下:Sql代码 select*fromtest_infointooutfile'/tmp/test.csv'fieldsterminatedby','optionallyenclosedby'"'escapedby'"'linesterminatedb... 阅读全文
posted @ 2014-11-18 15:10 seasonzone 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Drop all tables in MySQL databaseAnswer:MySQL does not have a command for removing all database table(s) without dropping the database, to do so, you ... 阅读全文
posted @ 2014-11-18 13:42 seasonzone 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 它的输出有以下几列:inserts/s 每秒插入次数query/s 每秒查询次数update/s 每秒更新次数delete/s 每秒删除次数getmore/s 每秒执行getmore次数command/s 每秒的命令数,比以上插入、查找、更新、删除的综合还多,还统计了别的命令flushs/s 每秒... 阅读全文
posted @ 2014-11-18 13:23 seasonzone 阅读(557) 评论(0) 推荐(0) 编辑
摘要: MongoDB Version: 2.4.7Mongodump:$ bin/mongodump -u admin -p admin -d test -o ./tmp/ connected to: 127.0.0.1:29017 assertion: 18 { code: 18, ok: 0.0, e... 阅读全文
posted @ 2014-11-18 13:22 seasonzone 阅读(339) 评论(0) 推荐(0) 编辑