MySQLdb in Python

Status
Not open for further replies.

vignesjhchennai

New Member
Messages
1
Reaction score
0
Points
0
I cant able to import MySQLdb in python . So my scripts are not working now. I think X10hosting removed support for MySQLdb module in python. My site fully depend on mysql so can you please provide support for it again.

Regards,
Vignesh
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
As far as I know, the MySQLdb extension wasn't a standard install. You can install it yourself; get the egg file for the extension from http://pypi.python.org/pypi/MySQL-python/ (you might be able to find a newer version elsewhere), then add the full pathname of the egg file (including the file itself) to sys.path.
 

meithan

Member
Messages
32
Reaction score
0
Points
6
I can't find the egg file for Python v2.4 (that's the Python the server runs, right?).
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Python 2.6, which is mentioned in previous threads. If you're not certain, you can always check what version of any particular software is installed.

Once the cPanel issues are taken care of, check the status of the Python MySQL extension, which (it turns out) was installed as an exception (normally, only the standard extensions are installed). If it hasn't been reinstalled, post in the Feedback and Suggestions thread. You should still try installing your own copy in the interim.
 
Status
Not open for further replies.
Top