This tree contains a work-in-progress version of MySQL that has support for Protocol Buffers.
The contributed code is licensed under GPLv2.
-
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
- On Debian/Ubuntu/Linux Mint run:
-
Clone this repo:
git clone git@github.com:google/mysql-protobuf.git -
Go to mysql-protobuf folder and create a new
binfolder:
cd mysql-protobuf && mkdir bin && cd bin -
Compile the project. For that, you have to run
cmakeand thenmake:
cmake .. -DDOWNLOAD_BOOST=1 -DWITH_BOOST=~/boost -DENABLE_DOWNLOADS=1 && make -j8 -
Create a folder where you'll run
mysqld:
mkdir -p ~/mysql-run && cd ~/mysql-run -
Copy
mysqldto this folder:
cp /path/to/mysql-protobuf/bin/sql/mysqld . -
Copy
errmsg.sysfile tosharefolder:
mkdir -p share && cp /path/to/mysql-protobuf/bin/sql/share/english/errmsg.sys share/ -
Create a
tmpdirfolder:
mkdir -p tmpdir -
Initialize
mysqld:
./mysqld --initialize-insecure --pid-file=./mysql.pid --basedir=. --datadir=./datadir --tmpdir=$HOME/mysql-run/tmpdir --socket=$HOME/mysql-run/mysqld.sock -
Run
mysqld:
./mysqld --pid-file=./mysql.pid --basedir=. --datadir=./datadir --tmpdir=$HOME/mysql-run/tmpdir --socket=$HOME/mysql-run/mysqld.sock -
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.