MySQL Forums
Forum List  »  Connector/Python

mysql error only on web page
Posted by: kNish Singhai
Date: October 25, 2007 07:21AM

Hi,

After trouble shooting error 10061, 1130, 1045 and 1044. Finally, the following code works in a python shell.

import MySQLdb
import MySQLdb.cursors
conn = MySQLdb.connect(host="ENG-3", user = "Any", passwd = "", db = "daily", cursorclass=MySQLdb.cursors.DictCursor)

user='root' also works. I now have a small cgi script, the values from the user are taken and inserted in the database. When this script is called with a click of a button, the throws the error page, saying

"
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@renderunit-19 and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

"

Is it possible to have the connect work thru a script just as it works thru a python shell.


BRgds,

kNish

Options: ReplyQuote


Subject
Written By
Posted
mysql error only on web page
October 25, 2007 07:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.