달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2008. 3. 29. 10:38

MySQL Federated Table DB2008. 3. 29. 10:38

오라클의 db link와 유사한 기능을 제공

federeated table은 transaction이 지원되지 않는다.

grant all privileges on *.* to dbUserId@'ip' identified by 'pwd' with grant option;
flush privileges;

CREATE TABLE IF NOT EXISTS tableName (
table description
) ENGINE=FEDERATED DEFAULT CHARSET=utf8 CONNECTION='mysql://userId:pwd@hostname:3306/dbname/tableName'

슬레이브 쪽에, 레플리케이션을 하고자하는 테이블/디비를 설정하거나, 반대로 레플리케이션을 하지 않을 테이블/디비를 my.cnf에 명시해주시면 됩니다.

replicate-ignore-db=indexmessage

replicate-ignore-table=gaiabbs.indexmessage

http://dev.mysql.com/doc/refman/5.0/en/replication-options.html

:
Posted by codetemplate