The strange thing is, Mysql is working perfectly alone or from php, and I already installed MySQLdb on a similar box at work (slack 9, etc) with no problems.
anything I can do to troubleshoot this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
recompiled mysql from source instead of using .rpm files and all is well now (apart from MySQLdb looking for mysql.sock in the wrong place)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-10-19
I am also running slackware 9 and was bedazzled with this segmentation fault. I had just installed mysql from source so that wasn't the problem, so I installed python 2.3.2 instead of the default 2.2.2, but that didn't help. Finally I installed mysql-python 0.9.1 instead of 0.9.2 since I read something about it working better. This and copying the mysql libraries solved the problem. Also made a link to mysql.sock so I didn't have to use unix_socket.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just installed MySQLdb 0.9.2 from source on a slackware 9 box, and it segfaults as soon as I perform a query using cursor.execute().
The box is running
mysql Ver 12.18 Distrib 4.0.12, for pc-linux (i686)
Python 2.2.3 (#1, Jul 23 2003, 19:35:07)
[GCC 3.2.2] on linux2
The strange thing is, Mysql is working perfectly alone or from php, and I already installed MySQLdb on a similar box at work (slack 9, etc) with no problems.
anything I can do to troubleshoot this?
recompiled mysql from source instead of using .rpm files and all is well now (apart from MySQLdb looking for mysql.sock in the wrong place)
I am also running slackware 9 and was bedazzled with this segmentation fault. I had just installed mysql from source so that wasn't the problem, so I installed python 2.3.2 instead of the default 2.2.2, but that didn't help. Finally I installed mysql-python 0.9.1 instead of 0.9.2 since I read something about it working better. This and copying the mysql libraries solved the problem. Also made a link to mysql.sock so I didn't have to use unix_socket.