I thought I'd try out the Python/PyQt/MySQL combination, but I've hit a snag that I can't handle. Any words of wisdom would be very welcome.
The machine is a C3000 with stock ROM.
I installed the Zaurus Python Image v2.4 from pyqplayer.sourceforge.net: files
Python runs fine, as far as I can tell.
For MySQL, I installed
That works fine using the mysql app: as zaurus or root I can create and populate databases. No passwords set yet.
But from python, I can't connect to MySQL. I've created a test database called 'junk' and here's what happens when I try to access it.
Python 2.4 (#1, Jan 5 2005, 19:21:20)
[GCC 2.95.1 19990816 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import qt
>>> import MySQLdb
>>> ms = MySQLdb.connect(host='localhost',user='zaurus',db='junk',passwd='')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/QtPalmtop/lib/python2.4/site-packages/MySQLdb/__init__.py", line 64, in Connect
return Connection(*args, **kwargs)
File "/home/QtPalmtop/lib/python2.4/site-packages/MySQLdb/connections.py", line 109, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
The MySQL daemon is running (or the mysql app wouldn't have worked). The directory
There are no error reports in dmesg.
Running as root gives the same error.
I'm totally new to Python, and I've no idea what to try next.
Cheers and TIA