Giter VIP home page Giter VIP logo

lfzhang / mysql-protobuf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/mysql-protobuf

0.0 2.0 0.0 440.21 MB

License: GNU General Public License v2.0

Shell 0.44% CMake 0.69% C++ 63.31% C 25.07% Perl 1.22% Groff 0.09% CSS 2.32% HTML 0.30% Batchfile 0.01% Objective-C 3.02% Pascal 0.10% Makefile 0.20% Python 1.18% Assembly 1.00% PHP 0.75% SourcePawn 0.08% SQLPL 0.06% Pawn 0.15% Visual Basic 0.01% DTrace 0.02%

mysql-protobuf's Introduction

This tree contains a work-in-progress version of MySQL that has support for Protocol Buffers.

The contributed code is licensed under GPLv2.

Getting started

  1. Install the following packages:

    • On Debian/Ubuntu/Linux Mint run:
      sudo apt-get install -y git g++ cmake bison libncurses5-dev
    • On Red Hat/Fedora/CentOS run:
      sudo yum install git g++ cmake bison ncurses-devel
  2. Clone this repo:
    git clone [email protected]:google/mysql-protobuf.git

  3. Go to mysql-protobuf folder and create a new bin folder:
    cd mysql-protobuf && mkdir bin && cd bin

  4. Compile the project. For that, you have to run cmake and then make:
    cmake .. -DDOWNLOAD_BOOST=1 -DWITH_BOOST=~/boost -DENABLE_DOWNLOADS=1 && make -j8

  5. Create a folder where you'll run mysqld:
    mkdir -p ~/mysql-run && cd ~/mysql-run

  6. Copy mysqld to this folder:
    cp /path/to/mysql-protobuf/bin/sql/mysqld .

  7. Copy errmsg.sys file to share folder:
    mkdir -p share && cp /path/to/mysql-protobuf/bin/sql/share/english/errmsg.sys share/

  8. Create a tmpdir folder:
    mkdir -p tmpdir

  9. Initialize mysqld:
    ./mysqld --initialize-insecure --pid-file=./mysql.pid --basedir=. --datadir=./datadir --tmpdir=$HOME/mysql-run/tmpdir --socket=$HOME/mysql-run/mysqld.sock

  10. Run mysqld:
    ./mysqld --pid-file=./mysql.pid --basedir=. --datadir=./datadir --tmpdir=$HOME/mysql-run/tmpdir --socket=$HOME/mysql-run/mysqld.sock

  11. Open another terminal and connect to mysqld:
    /path/to/mysql-protobuf/bin/client/mysql -u root -S ~/mysql-run/mysqld.sock

For examples of usage, please see our wiki.

mysql-protobuf's People

Contributors

agopi avatar alfranio avatar bjornmu avatar bkandasa avatar blaudden avatar dahlerlend avatar david-zhao avatar frazerclement avatar gkodinov avatar glebshchepa avatar gurusami avatar harinvadodaria avatar jdduncan avatar jhauglid avatar kboortz avatar marcalff avatar mithuncy avatar nacarvalho avatar nryeng avatar phulakun avatar pratikpatodi01 avatar roylyseng avatar satya461 avatar snarkedi avatar stewartsmith avatar thayumanavar77 avatar thirunarayanan avatar vaintroub avatar vasild avatar zmur avatar

Watchers

 avatar  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.