README
1This is the FederatedX Storage Engine, developed as an external storage engine.
2
3NOTE:
4
5The following is only relevant if you use it for MySQL. MariaDB already comes
6with the latest version of FederatedX.
7
8To 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
12make install
13
14And then inside of MySQL:
15
16mysql> INSTALL PLUGIN federatedx SONAME 'libfederatedx_engine.so';
17
18mysql> CREATE TABLE `d` (`a` varchar(125), b text, primary key(a)) ENGINE=FEDERATEDX CONNECTION="mysql://root@host/schema/table"
19
20or
21
22mysql> CREATE TABLE `d` (`a` varchar(125), b text, primary key(a)) ENGINE=FEDERATEDX CONNECTION="server" CHARSET=latin1;
23
24You will probably need to edit the Makefile.am in the src/ tree if you want
25to build on anything other then Linux (and the Makefile assumes that the
26server was not compiled for debug). The reason for the two possible
27configure lines is that libdir is dependent on where MySQL was installed. If
28you run the "INSTALL PLUGIN ..." and you get a file not found, check that
29your configured this directory correctly.
30
31For Solaris you can enable DTrace probes by adding to configure
32--enable-dtrace
33
34
README.windows
1The following files are changed in order to build a new engine on Windows:
2
3- Update win\configure.js with
4case "WITH_FEDERATEDX_STORAGE_ENGINE":
5to make sure it will pass WITH_FEDERATEDX_STORAGE_ENGINE in.
6
7- Update CMakeFiles.txt under mysql root:
8 IF(WITH_FEDERATEDX_STORAGE_ENGINE)
9 ADD_DEFINITIONS(-D WITH_FEDERATEDX_STORAGE_ENGINE)
10 SET (mysql_plugin_defs
11 "${mysql_plugin_defs},builtin_skeleton_plugin")
12 ENDIF(WITH_FEDERATEDX_STORAGE_ENGINE)
13
14 and,
15
16 IF(WITH_FEDERATEDX_STORAGE_ENGINE)
17 ADD_SUBDIRECTORY(storage/skeleton/src)
18 ENDIF(WITH_FEDERATEDX_STORAGE_ENGINE)
19
20 - Update CMakeFiles.txt under sql:
21 IF(WITH_FEDERATEDX_STORAGE_ENGINE)
22 TARGET_LINK_LIBRARIES(mysqld skeleton)
23 ENDIF(WITH_FEDERATEDX_STORAGE_ENGINE)
24