bug_x

导航

 

2020年7月27日

摘要: mysqldump可以选择使用多值插入打开或关闭。您可以根据自己的喜好执行以下任一操作: 每个值单独插入语句: mysqldump -t -h192.168.212.128 -P3306 --default-character-set=utf8 --skip-extended-insert -uro 阅读全文
posted @ 2020-07-27 22:58 bug_x 阅读(295) 评论(0) 推荐(0) 编辑
 
摘要: 原文链接:http://www.520mwx.com/view/90469 45亿数据迁移记录 背景 数据库数据量日益增加,逐渐开始显得很是臃肿,日常查询统计的时候,仅仅是count(1) 查询下总数,耗费的时间也在500s左右,而且之前的orcle数据库,前期建立的时候,也未考虑太多,未进行索引, 阅读全文
posted @ 2020-07-27 22:55 bug_x 阅读(4203) 评论(0) 推荐(0) 编辑
 
摘要: 1、 --导入数据: CREATE TABLE FactSaleOrders ENGINE = MergeTree ORDER BY OrderID AS SELECT * FROM mysql('10.42.134.136:4000', 'dbname', 'tableName', 'root', 阅读全文
posted @ 2020-07-27 22:51 bug_x 阅读(8451) 评论(0) 推荐(1) 编辑
 
摘要: ClickHouse MySQL Comment UInt8, UInt16, UInt32, UInt64 TINYINT UNSIGNED, SMALLINT UNSIGNED, INT UNSIGNED, BIGINT UNSIGNED Int8, Int16, Int32, Int64 TI 阅读全文
posted @ 2020-07-27 22:39 bug_x 阅读(3899) 评论(0) 推荐(0) 编辑