Re: How to create a SQL engine like MySQL server

harryxiyou <[email protected]> Thu, 29 Jan 2015 18:00:51 +0800
Newsgroups gmane.comp.db.mysql.devel
Message-ID <CAD+1EGPwd+w4P6D7M+cPhjeyZAccmjTum7HhkDJA-Fve6X49QA@mail.gmail.com>
On Thu, Jan 29, 2015 at 3:28 PM, Stewart Smith
<[email protected]> wrote:
> harryxiyou <[email protected]> writes:
>> I am not clear about above two questions. Still, I may
>> design/implement a lightweight MySQL-server side (currently, I want it
>> can only be connected by MySQL-client) taking MySQL-proxy as a
>> reference, cann't I?
>
> It's probably an okay reference, but you can check out percona-playback
> and how it parses mysql protocol too.
>
> Check licenses before using code though.
>


I download percona-playback source codes (earliest version 0.1) from
https://launchpad.net/percona-playback/1.0/0.1/+download/percona_playback-0.1.tar.gz

When I compile it, it shows me following errors.

harryxiyou@common_vm ~/workshop1/percona_playback-0.1 $ make
cd . && python config/pandora-plugin write
make  all-am
make[1]: Entering directory `/lhome/harryxiyou/workshop1/percona_playback-0.1'
cd . && python config/pandora-plugin write
  CXX    percona_playback/libpercona_playback_la-percona_playback.lo
In file included from percona_playback/percona_playback.cc:26:
percona_playback/query_log/query_log.h:25:24: error: tbb/atomic.h: No
such file or directory
In file included from percona_playback/percona_playback.cc:26:
percona_playback/query_log/query_log.h:57: error: 'tbb' has not been declared
percona_playback/query_log/query_log.h:57: error: expected ',' or
'...' before '<' token
make[1]: *** [percona_playback/libpercona_playback_la-percona_playback.lo]
Error 1
make[1]: Leaving directory `/lhome/harryxiyou/workshop1/percona_playback-0.1'
make: *** [all] Error 2


Thanks, Harry

-- 
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe:    http://lists.mysql.com/internals