maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Pythonclient Mysql Maemo5 (https://talk.maemo.org/showthread.php?t=37295)

wire-less 2009-12-15 14:01

Pythonclient Mysql Maemo5
 
I can see mysql client libs using apt-cache search, but I cant find a python Mysql module.
Anyone interfacing mysql with python on maemo?

I want to make a simple query-application giving me
telephonenumbers stored in a mysql-db. May
be clicking a button to dial them or transfer them
to N900 addressbook.

roose 2010-01-15 22:04

Re: Pythonclient Mysql Maemo5
 
You can compile it yourself using scratchbox.

Here what i did to get it running. (If i remember right)

# downloaded and installed python setuptools

# downloaded mysql 5.0.x (scratchbox)
# compiled the mysql client:
./configure --prefix=/usr/local/mysql --without-server
make
make install

copied and symlinked the needed stuff. If i remember right i symlinked libmysqlclient*, mysql, mysqldump and mysql_config

# downloaded python-mysql from sourceforge (scratchbox)
# build it
python2.5 setup.py build --build-base=/home/roose/MySQL-python-1.2.3c1/build
cd /home/roose/MySQL-python-1.2.3c1/build/lib.linux-armv5tel-2.5/
tar cvf MySQLdb.tar *
# unpacked MySQLdb.tar to my device (/usr/lib/python2.5/site-packages/)

# on device
apt-get install libncursesw5

Hope i didn't miss anything ...


All times are GMT. The time now is 19:47.

vBulletin® Version 3.8.8