| 1 |
This is the FederatedX Storage Engine, developed as an external storage engine. |
| 2 |
|
| 3 |
NOTE: |
| 4 |
|
| 5 |
The following is only relevant if you use it for MySQL. MariaDB already comes |
| 6 |
with the latest version of FederatedX. |
| 7 |
|
| 8 |
To install, grab a copy of the mysql source code and run this: |
| 9 |
|
| 10 |
./configure --with-mysql=/path/to/src/mysql-5.x --libdir=/usr/local/lib/mysql/ |
| 11 |
|
| 12 |
make install |
| 13 |
|
| 14 |
And then inside of MySQL: |
| 15 |
|
| 16 |
mysql> INSTALL PLUGIN federatedx SONAME 'libfederatedx_engine.so'; |
| 17 |
|
| 18 |
mysql> CREATE TABLE `d` (`a` varchar(125), b text, primary key(a)) ENGINE=FEDERATEDX CONNECTION="mysql://root@host/schema/table" |
| 19 |
|
| 20 |
or |
| 21 |
|
| 22 |
mysql> CREATE TABLE `d` (`a` varchar(125), b text, primary key(a)) ENGINE=FEDERATEDX CONNECTION="server" CHARSET=latin1; |
| 23 |
|
| 24 |
You will probably need to edit the Makefile.am in the src/ tree if you want |
| 25 |
to build on anything other then Linux (and the Makefile assumes that the |
| 26 |
server was not compiled for debug). The reason for the two possible |
| 27 |
configure lines is that libdir is dependent on where MySQL was installed. If |
| 28 |
you run the "INSTALL PLUGIN ..." and you get a file not found, check that |
| 29 |
your configured this directory correctly. |
| 30 |
|
| 31 |
For Solaris you can enable DTrace probes by adding to configure |
| 32 |
--enable-dtrace |
| 33 |
|