Jump to content

MySQL connection prevents script running


kickstart

Recommended Posts

Hi

 

I have a small web site I have got running, on a Windows server mainly using Access databases ( :'( ). This is working fine as it is now. I have added some more processing which entails connecting to a MySQL database and I have this working fine on my development machine.

 

Came to put it on the server and the page cannot be found.

 

I have traced it down to the line I have that follows:-

 

$conn = mysql_connect($dbhost,$dbuser,$dbpasswd);

 

If I comment that line out (and don't execute any MySQL) then the page loads fine. Leave that line in and I get a 500 error.

 

MySQL appears to be running and if I use MSQL Workbench with the same connection details it connects and lets me see the tables.

 

Any ideas?

 

All the best

 

Keith

Probably a fatal runtime error at the mysql_ statement, either because the mysql extension is not enabled or is perhaps corrupted or a  mis-matched version...

 

What does full php error_reporting/error logging show?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.