MySQLdb "Illegal instruction" error.

Stephen shriek at gmx.co.uk
Sun Dec 23 04:02:58 EST 2001


> >>> import MySQLdb
> >>> d = MySQLdb.connect("", "test", "", "")
> Illegal instruction
> 
> I can confirm that the MySQL database 'test' can be accessed 
> by anybody on localhost (as well as any other host) using the
> mysql client. So, I think it must be MySQLdb on my system. 

Sorry, the above snippet was wrong - should've been 

>>> d = MySQLdb.connect("", "", "", "test") 

but the problem still persists (ie. "Illegal Instruction" error and
Python exits).

I've tried using MySQLdb for Python1.5.2 and the same problem exists.
So, that pretty much rules out Python1 vs Python2 problems - now to 
work out if it's a MySQLdb or MySQL problem. 

I can connect to the linux server from a Windows PC running Python2
and using MySQLdb. So, the problem really lies with either MySQL or
MySQLdb on my linux box. Am starting to think it's more MySQL but it
hasn't shown any other anomalies (in fact, I was quite astounded at
how easy MySQLdb installed without complaining about not being able
to find libraries etc).

Oh, the linux server is also running the latest stable version of
MySQL - 3.23.46.   Getting pretty desperate so if anybody has any
ideas, really appreciate it. Thanks. 

S.



More information about the Python-list mailing list