I have mysql 5.1.44:
mysql> show engines; +------------+---------+ | Engine | Support | +------------+---------+ | ndbcluster | NO | | MRG_MYISAM | YES | | BLACKHOLE | YES | | CSV | YES | | MEMORY | YES | | FEDERATED | NO | | ARCHIVE | YES | | InnoDB | YES | | MyISAM | DEFAULT |
I need to enable federation engine in mysql. what should I do?
I know this post is a bit old, but it seems like a lot of people are having issues with the union engine.
When installing the mysql binary via yum, you already have the HA (High Availability) plugin. You just load the plugin in the mysql CLI.
The basic process is as follows:
Start mysqld (if not already started). Make sure "federated" is not in /etc/my.cnf at this time.
EX: At this point, /etc/my.cnf will look like this on a standard YUM installation...
Log in to the mysql CLI using root (or another account with sufficient permissions).
You should not see the FEDERATED engine at this point, as shown below:
-->End pasting
To enable the federation engine, type the following:
Now when you "Show Engines" you will see the FEDERATED engine, but it is turned off...
It looks like this:
You can now safely add the "federated" line to the /etc/my.cnf file like this:
Restart mysqld (service mysqld restarts, etc...)
After restarting, return to mysql CLI.
You should now see that the FEDERATED engine is available and SUPPORT is YES.
You are done...continue to create federated tables...
Good luck!
Edit
/etc/my.cnf
and add the following lines in the[mysqld]
section:Equivalent to specifying
on the command line--federated