Re: How to create a SQL engine like MySQL server

Stewart Smith <[email protected]> Thu, 29 Jan 2015 21:07:30 +1100
Newsgroups gmane.comp.db.mysql.devel
Message-ID <[email protected]>
harryxiyou <[email protected]> writes:

> On Thu, Jan 29, 2015 at 6:00 PM, harryxiyou <[email protected]> wrote:
>> 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
>>
>
> It seems that I miss tbb/atomic.h. I need to install some
> dependencies, isn't it?

Yes, you'll need Intel Threading Building Blocks, specific libdrizzle
version etc etc. Should be documented, or at very least, documented in
the debian build-dependencies :)


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