Coder Social home page Coder Social logo

mosql-se's Introduction

MoSQL Storage Engine

The MoSQL storage engine for MySQL/MariaDB (mosql-se) is a single component of the larger MoSQL system developed at the Unviersity of Lugano, now released under the GPL v3. For an overview of the system, please see the main project home page.

mosql-se requires mosql-storage to be running in order to function. The MoSQL storage layer is a fully-functioning transactional key-value system on its own, useful for applications which do not require full-fledged SQL transactions.

Building

The MoSQL storage engine code uses CMake. It is a pain to build properly because it requires the full source of MySQL/MariaDB, so we will be making binaries available for different versions of MySQL. For the brave, you will require:

  • MySQL 5.1 (see the wiki/issues for support coming for newer versions)
  • Full source for the version you intend to run, not just the development headers!
  • [mosql-storage] built and installed
  • libevent 2.0+

An example of how to build using CMake:

cd mosql-se
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=~/local/mosql-se \ 
  -D MYSQLSRC_ROOT=~/src/mysql-5.1.51 \
  -D LIBTAPIOCA_ROOT=~/local/mosql-storage  \ 
  -D  CMAKE_BUILD_TYPE=Debug  \
  -D MYSQL_ROOT=~/local/mysql-debug-5.1.51 ../src

Installation

Assuming CMake ran successfully, run:

make -j 4
make install

To build and install mosql-se into the target installation folder.

Launching

In the scripts folder, use launch_db.sh to copy the shared library to the appropriate folder in your mysql installation (usually /lib/plugin or /lib/mysql/plugin) and launch the mysqld process.

To install the storage engine library into the MySQL server, run

INSTALL PLUGIN mosql SONAME 'libmosqlse.so';

In order for the plugin to successfully install, it will expect to find a single configuration file called 'tapioca.cfg' in the data directory of your mysql installation. The format is simple, it should contain a single line for every storage node you wish the MySQL server to connect to in the following format:

<Host> <Port> <Node#>

An example file where MySQL connects to two local mosql storage processes would be:

127.0.0.1 5555 0  
127.0.0.1 5556 1  

mosql-se's People

Contributors

atomic77 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.