Skip to content

Instantly share code, notes, and snippets.

@chluehr
Created November 13, 2010 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chluehr/675433 to your computer and use it in GitHub Desktop.
Save chluehr/675433 to your computer and use it in GitHub Desktop.
How to setup MariaDB w/ OQGraph Plugin
  • Download all from: MariaDB deb package repository

  • install packages:

    dpkg --install libmariadbclient16_5.2.3-mariadb87_amd64.deb \
    libmysqlclient16_5.2.3-mariadb87_amd64.deb \
    mariadb-client_5.2.3-mariadb87_all.deb  \
    mariadb-client-5.2_5.2.3-mariadb87_amd64.deb  \
    mariadb-server_5.2.3-mariadb87_all.deb  \
    mariadb-server-5.2_5.2.3-mariadb87_amd64.deb  \
    mariadb-client-core-5.2_5.2.3-mariadb87_amd64.deb  \
    mariadb-server-core-5.2_5.2.3-mariadb87_amd64.deb
    
    apt-get install libdbi-perl libdbd-mysql-perl psmisc 
    
  • enable OQGraph engine (once per installation / setup):

    echo "install plugin oqgraph soname 'ha_oqgraph.so';" | mysql -u root -p
    
  • Test via mysql:

    CREATE DATABASE graph;
    USE graph
    CREATE TABLE graph.tblname (
    latch   SMALLINT  UNSIGNED NULL,
    origid  BIGINT    UNSIGNED NULL,
    destid  BIGINT    UNSIGNED NULL,
    weight  DOUBLE    NULL,
    seq     BIGINT    UNSIGNED NULL,
    linkid  BIGINT    UNSIGNED NULL,
    KEY (latch, origid, destid) USING HASH,
    KEY (latch, destid, origid) USING HASH
    ) ENGINE=OQGRAPH;
    
  • see: OpenQuery Graph Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment