• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..10-Feb-2022-

AUTHORSH A D10-Feb-2022374 128

ChangeLogH A D10-Feb-2022815 1915

FAQH A D10-Feb-20221.4 KiB4130

READMEH A D10-Feb-20221.2 KiB3420

README.windowsH A D10-Feb-2022750 2418

TODOH A D10-Feb-20221.8 KiB3127

federatedx_io.ccH A D10-Feb-20223 KiB10252

federatedx_io_mysql.ccH A D10-Feb-202216.5 KiB659459

federatedx_io_null.ccH A D10-Feb-20226.5 KiB302190

federatedx_probes.hH A D10-Feb-2022816 4628

federatedx_txn.ccH A D10-Feb-20228.6 KiB429297

ha_federatedx.ccH A D10-Feb-2022110 KiB3,7071,940

ha_federatedx.hH A D10-Feb-202216.3 KiB465275

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