1. 程式人生 > >mysql水平分區

mysql水平分區

clas 數據量 code val max range mysq div url

解決問題:單表數據量過大

ALTER TABLE boc_url_log PARTITION BY RANGE (ulid)
(   
PARTITION log_1 VALUES LESS THAN (1000000) ENGINE = MyISAM,
PARTITION log_2 VALUES LESS THAN (2000000) ENGINE = MyISAM, 
PARTITION log_3 VALUES LESS THAN (3000000) ENGINE = MyISAM,
PARTITION log_4 VALUES LESS THAN MAXVALUE ENGINE = MyISAM
);

mysql水平分區