Jump to content

Recommended Posts

Posted

Following the example at http://www.heliohost.org/home/features-mai...databases/mysql I begin writing this simple script:

 

 

 

#! /usr/bin/python

 

import sys, traceback

sys.stderr = sys.stdout

 

print 'Content-type: text/html\n\n'

 

import MySQLdb

 

 

 

 

What I get from the execution of the script is: Traceback (most recent call last): File "prova.py", line 8, in ? import MySQLdb ImportError: No module named MySQLdb

 

 

It seems like module MySQLdb is not installed. Is this an issue?

Posted

Is it working now?

 

Admin, I ran:

yum list *python* | grep -i mysql
[noticed I could install it via yum]
yum install MySQL-python

Guest
This topic is now closed to further replies.
×
×
  • Create New...