在mysql的記錄檔中有以下提示資訊,該資訊與federated引擎有關,就是在編譯的時候加入了該選項,但是並沒有在設定檔中加以啟用,關於federated引擎,請參考mysql的官方參考文檔。
http://dev.mysql.com/doc/refman/5.1/zh/storage-engines.html#federated-storage-engine
[root@170_DDB ~]# grep -i fed /home/mysql/data/10_ccs.err
- 120814 13:50:42 [Note] Plugin 'FEDERATED' is disabled.
- 120814 13:53:49 [Note] Plugin 'FEDERATED' is disabled.
- 120814 14:42:52 [Note] Plugin 'FEDERATED' is disabled.
同時mysql中運行show engines顯示資訊如下:
- mysql> show engines;
- +------------+---------+------------------------------------------------------------+--------------+------+------------+
- | Engine | Support | Comment | Transactions | XA | Savepoints |
- +------------+---------+------------------------------------------------------------+--------------+------+------------+
- | CSV | YES | CSV storage engine | NO | NO | NO |
- | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
- | FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
- | MyISAM | YES | Default engine as of MySQL 3.23 with great performance | NO | NO | NO |
- | InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
- | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
- +------------+---------+------------------------------------------------------------+--------------+------+------------+
- 6 rows in set (0.01 sec)
在mysql的啟動設定檔中添加選項:
[root@170_DDB ~]# vim /usr/local/mysql5/etc/innodb.cnf
- [mysqld]
- federated
重啟mysql,再次查看日誌,該提示資訊不再出現
再次運行show engines顯示資訊如下:
- mysql> show engines;
- +------------+---------+------------------------------------------------------------+--------------+------+------------+
- | Engine | Support | Comment | Transactions | XA | Savepoints |
- +------------+---------+------------------------------------------------------------+--------------+------+------------+
- | CSV | YES | CSV storage engine | NO | NO | NO |
- | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
- | FEDERATED | YES | Federated MySQL storage engine | NO | NO | NO |
- | MyISAM | YES | Default engine as of MySQL 3.23 with great performance | NO | NO | NO |
- | InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
- | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
- +------------+---------+------------------------------------------------------------+--------------+------+------------+
- 6 rows in set (0.00 sec)
從上面的資訊中可以看出:已經可以支援FEDERATED了。
本文出自 “開源一員” 部落格,請務必保留此出處http://521cto.blog.51cto.com/950229/963627