mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-19123 Change default charset from latin1 to utf8mb4
Changing the default server character set from latin1 to utf8mb4.
This commit is contained in:
@ -15,7 +15,7 @@ CREATE TABLE t1 (
|
||||
c1 char(1) NOT NULL,
|
||||
KEY c1 (c1),
|
||||
KEY n1_c1_n2 (n1,c1,n2)
|
||||
) ENGINE=InnoDB;
|
||||
) ENGINE=InnoDB CHARSET=latin1;
|
||||
INSERT INTO t1 VALUES (0, 2, 'a'), (1, 3, 'a');
|
||||
insert into t1 select seq+1,seq+2,'c' from seq_1_to_1000;
|
||||
|
||||
@ -201,12 +201,12 @@ set optimizer_use_condition_selectivity=default;
|
||||
--echo # much smaller)
|
||||
--echo #
|
||||
|
||||
create table t3 (a int, b int, c char(127), index idx_b(b)) engine=myisam;
|
||||
create table t3 (a int, b int, c char(127), index idx_b(b)) engine=myisam charset=latin1;
|
||||
insert into t3 values
|
||||
(8,11,'aa'), (5,15,'cc'), (1,14,'bb'), (2,12,'aa'), (7,17,'cc'),
|
||||
(7,18,'aa'), (2,11,'aa'), (7,10,'bb'), (3,11,'dd'), (4,12,'ee'),
|
||||
(5,14,'dd'), (9,12,'ee');
|
||||
create table t4 (a int, b int, c char(127), index idx(a,c)) engine=myisam;
|
||||
create table t4 (a int, b int, c char(127), index idx(a,c)) engine=myisam charset=latin1;
|
||||
insert into t4 values
|
||||
(7,10,'cc'), (1,20,'aa'), (2,23,'bb'), (7,18,'cc'), (1,30,'bb'),
|
||||
(4,71,'xx'), (3,15,'aa'), (7,82,'aa'), (8,12,'dd'), (4,15,'aa'),
|
||||
|
Reference in New Issue
Block a user