[MYSQL] FEDERATED table backup fail

1. 현상

   - Mysql에서 mysqldump로 DB 백업시 FEDERATED table 때문에 백업 실패함.

     [root@server /]# mysqldump -u root -p DBname > 백업파일명.sql

     mysqldump: Got error: 1296: Got error 10000 'Error on remote system: 1044: Access denied for user 'root'@'%' to database DBname from FEDERATED when using LOCK TABLES

2. 방법

   - mysql 에 접속하여 FEDERATED table 찾기

     [root@server /]# mysql -u root -p
     mysql> show create table DBname.tbname;

   - 위에서 찾은 FEDERATED table를 제외하고 백업하기

     : FEDERATED table가 한 개인 경우
     [root@server /]# mysqldump -u root -p DBname --ignore-table=DBname.tbname > 백업파일명.sql

     : FEDERATED table가 두 개 이상인 경우
     [root@server /]# mysqldump -u root -p DBname --ignore-table=DBname.tbname1 --ignore-table=DBname.tbname2 > 백업파일명.sql

끝.