Hi Alex,

FYI, I was able to run a python script using libmysequoia on freebsd, after having installed py24-MySQLdb-devel-1.2.2.b2 package with a command like:
LD_PRELOAD=<path_to_libmysequoia>/libmysequoia.so python <myscript>.py

As MacOS-X is based on freebsd, there should be no problem running it on darwin.

Thanks to keep us posted,
Gilles.


Csaba E. Simon wrote:
Hello Alex,

I will answer your question on the mailing list. Probably somebody else
also will find this answers useful.

  
I successfully installed libmysequoia on Apple Mac OS X. What's next?
The goal is to connect from Python to MySQL.
    

Congratulation!

If you want only to connect to MySQL through Python than you need only
the MySQLdb [1] Python connector. You don't need libmysequoia in that
case.

libmysequoia is supposed to be a "libmysqlclient like" library to
connect to the Sequoia [2] cluster. libmysequoia and libmysqlclient
share the same API (or almost the same, see the limitations [3])

  
I didn't succeeded to start the "daemon", I can't find the
controller.sh. How can I change the "username", "password" for the
carob "make test" ?
    

The controller.sh is part of the Sequoia database cluster. First you
need to download [4], install and configure the cluster. After that you
can start the controllers following the guidance from here [5] I
recommend the 2.10 stable branch.

  
In libmysequoia-0.9.8 in Converter.cpp at lines: 95, 141 "char *inbuf"
must be "const char *inbuf"
    

Thanks for your bug report. I will fix this.

Hope that helps.

Regards,
Csaba

[1] http://mysql-python.sourceforge.net/
[2] http://sequoia.continuent.org/HomePage
[3] http://carob.continuent.org/LibMySequoia
[4] https://forge.continuent.org/frs/?group_id=6
[5] http://sequoia.continuent.org/Manuals

PS: for anybody wondering what kind of language is below: it is
Hungarian :-)

On Mon, 2007-04-02 at 15:47 +0200, Alex Toth wrote:
  
Hello,

Sikerult telepiteni a libmysequoia-t Apple Mac OS X-ben. Kerdesem: hogyan tovabb? A cel hogy python-bol csatlakozzak MySQL-hez.

Nem sikerul elinditani a "daemon"-t, nem talalom a ./controller.sh. Honnan lehet valtoztatni a "username", "password" a carob "make test"-hez?


Ezeket probaltam a carob-r0_7_3:
make OS=darwinports
make test OS=darwinports
## probaltam valtoztatni a test/ConnectionSetup.hpp -ben 
a const static std::wstring& DEFAULT_USER -t, de nem jo..

A libmysequoia-0.9.8 -ban Converter.cpp kellet atirni: "char *inbuf" hejet "const char *inbuf" (lines: 95, 141) 

./configure --with-carob-headers=/usr/local/include/carob/ --with-carob-lib=/usr/local/lib/ --with-log4cxx-headers=/usr/local/include/ --with-log4cxx-lib=/usr/local/lib --with-mysql-headers=/usr/local/mysql/include/
make

Udv, Alex
    


_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

  
_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

Reply via email to