MySQLdb "Illegal instruction" error.

Roman Suzi rnd at onego.ru
Sun Dec 23 05:01:22 EST 2001


On 23 Dec 2001, Stephen wrote:

>> >>> 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.

Maybe you've used wrong version of Python to compile extension
module? I remember having problems with threads when compiling
MySQLdb. Getting latest source solved the problem.

OT:
Why mysql and mysqladmin when used with -p gives
core dumps on (slightly upgraded) RH 6.2 systems?

>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).

I also remember MySQLdb has it's own maillist. Probably, you can ask
MySQLdb author there.

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Sunday, December 23, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "When a New Yorker looks as if he's suntanned, it's probably rust." _/





More information about the Python-list mailing list