User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 456,564 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,584 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 672 | Replies: 0
Reply
Join Date: Oct 2007
Posts: 15
Reputation: knish is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
knish knish is offline Offline
Newbie Poster

mysql error only on web page

  #1  
Oct 25th, 2007
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 5:50 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC