You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.2 KiB

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