I spent a few hours trying to get the federated engine to work on Mysql, and since I didn’t find any good sources for it, I thought a blog might help someone else.
First, install mysql if you haven’t already. I used homebrew.
1
|
|
The Federated plugin is not installed by default, so you’ll have to do it manually. Get into mysql as root (or a user that can alter the mysql.plugin table) and type:
1
|
|
To check if it was installed correctly run:
1
|
|
Exit the shell and edit /etc/my.cnf file. If you don’t have any, you’ll find an example in your mysql installation directory.
1
|
|
Edit the file, and under [mysqld] add a line that contains:
1
|
|
Restart the mysqld service:
1
|
|
Congrats. You’re done!