how to connect mysql in python scripts???

Status
Not open for further replies.

pmz132167

New Member
Messages
4
Reaction score
0
Points
0
I am new hear ...
when i tried to connect to mysql , the code does not work !
PHP:
#!/usr/bin/env python

import os
print "Content-type: text/html\r\n\r\n";

try:
   import MySQLdb
except Exception, e:
   print e
it says No module named MySQLdb ...

could you tell me how to connect mysql in python scripts???:confused::confused:
 
Status
Not open for further replies.
Top