Server IP : 49.212.180.16 / Your IP : 18.224.52.33 Web Server : Apache System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 User : utannto ( 1076) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/rs/mysql/5.1/mysql-test/suite/federated/ |
Upload File : |
CREATE DATABASE federated; CREATE DATABASE federated; create table federated.t1 (a int primary key, b varchar(64)) engine=myisam; create table federated.t1 (a int primary key, b varchar(64)) engine=federated connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1'; insert into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe"); ERROR 23000: Can't write; duplicate key in table 't1' select * from federated.t1; a b 1 Larry 2 Curly truncate federated.t1; alter table federated.t1 engine=innodb; insert into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe"); ERROR 23000: Can't write; duplicate key in table 't1' select * from federated.t1; a b drop table federated.t1; drop table federated.t1; DROP TABLE IF EXISTS federated.t1; DROP DATABASE federated; DROP TABLE IF EXISTS federated.t1; DROP DATABASE federated;