| 1 |
connect master,127.0.0.1,root,,test,$MASTER_MYPORT,; |
| 2 |
connect slave,127.0.0.1,root,,test,$SLAVE_MYPORT,; |
| 3 |
connection master; |
| 4 |
CREATE DATABASE federated; |
| 5 |
connection slave; |
| 6 |
CREATE DATABASE federated; |
| 7 |
connection master; |
| 8 |
CREATE TABLE t1 (a INT) ENGINE=FEDERATED CONNECTION='non_existing'; |
| 9 |
ERROR HY000: server name: 'non_existing' doesn't exist! |
| 10 |
SHOW WARNINGS; |
| 11 |
Level Code Message |
| 12 |
Error 1 server name: 'non_existing' doesn't exist! |
| 13 |
Error 1 Can't create/write to file 'non_existing' (Errcode: 14 "Bad address") |
| 14 |
Warning 1030 Got error 1 "Operation not permitted" from storage engine FEDERATED |
| 15 |
create table t1 (a int); |
| 16 |
create table fed (a int) engine=Federated CONNECTION='mysql://[email protected]:MASTER_PORT/test/t1'; |
| 17 |
drop table t1; |
| 18 |
select * from fed; |
| 19 |
Got one of the listed errors |
| 20 |
drop table fed; |
| 21 |
connection master; |
| 22 |
DROP TABLE IF EXISTS federated.t1; |
| 23 |
DROP DATABASE IF EXISTS federated; |
| 24 |
connection slave; |
| 25 |
DROP TABLE IF EXISTS federated.t1; |
| 26 |
DROP DATABASE IF EXISTS federated; |