Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.