Current Path : /home/usr.opt/mysql57/mysql-test/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/include/rpl_loaddata_charset.inc |
connection master; --disable_warnings DROP DATABASE IF EXISTS mysqltest; --enable_warnings CREATE DATABASE mysqltest CHARSET UTF8; USE mysqltest; CREATE TABLE t (cl varchar(100)) CHARSET UTF8; if (!$LOAD_LOCAL) { LOAD DATA INFILE '../../std_data/loaddata_utf8.dat' INTO TABLE t FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'; } if ($LOAD_LOCAL) { LOAD DATA LOCAL INFILE './std_data/loaddata_utf8.dat' INTO TABLE t FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'; } save_master_pos; echo ----------content on master----------; SELECT hex(cl) FROM t; connection slave; sync_with_master; echo ----------content on slave----------; USE mysqltest; SELECT hex(cl) FROM t; connection master; DROP DATABASE mysqltest; save_master_pos; connection slave; sync_with_master;