mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -27,7 +27,7 @@ Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NULL DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
include/stop_slave.inc
|
||||
@@ -86,7 +86,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` timestamp NULL DEFAULT NULL,
|
||||
`f2` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
set statement time_zone='+2:00' for select * from t1;
|
||||
f1 f2
|
||||
NULL NULL
|
||||
@@ -99,7 +99,7 @@ Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NULL DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
include/diff_tables.inc [master:t2,slave:t2]
|
||||
connection master;
|
||||
drop table t2;
|
||||
@@ -124,7 +124,7 @@ Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
include/stop_slave.inc
|
||||
@@ -183,7 +183,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`f2` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
set statement time_zone='+2:00' for select * from t1;
|
||||
f1 f2
|
||||
2022-07-23 16:24:48 2022-07-23 16:24:48
|
||||
@@ -196,7 +196,7 @@ Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
include/diff_tables.inc [master:t2,slave:t2]
|
||||
connection master;
|
||||
drop table t2;
|
||||
@@ -218,7 +218,7 @@ Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
include/stop_slave.inc
|
||||
@@ -231,7 +231,7 @@ Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
include/diff_tables.inc [master:t2,slave:t2]
|
||||
connection master;
|
||||
drop table t2;
|
||||
|
Reference in New Issue
Block a user