Reply
Thread Tools
Posts: 42 | Thanked: 25 times | Joined on Sep 2009
#1
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.
 
Posts: 23 | Thanked: 4 times | Joined on Dec 2009
#2
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 ...
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:53.