Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to mySQL database

Status
Not open for further replies.

Papa Bear

Programmer
Feb 1, 2003
37
GB
Hi All

I have got a web site running OK for 3 years using a DSN to connect to a mySQL database. I am no tying to connect DSNless, but get "500 - Internal server error." NO other message. Can any body see what I am doing wrong! The second line worked untill yesterday when my hosting company "UPGRADED" my hosting package forcing me to go this route (which I should have done ages ago).

Code:
set DBconn=server.createobject("adodb.connection")
'DBconn.open "dsn=someDSN"
DBConn.open "driver={MySQL ODBC 3.51 Driver};server=123.345.789.123;uid=userID;pwd=password;DATABASE=PoyntonDB;"
 
First, see faq333-5427 to get a better error message than "500 - Internal server error.
 
Thanks for the tip guitarzan.

I have copied my code to another host, and it works from there!! So the fault lies with my current hosting company. Left it with them
 
Are both systems hosted on Linux/Unix?

Because database names are case sensitive for mysql on linux systems whereas mysql on windows is not.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top