kickstart Posted March 16, 2011 Share Posted March 16, 2011 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 Link to comment https://forums.phpfreaks.com/topic/230844-mysql-connection-prevents-script-running/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 16, 2011 Share Posted March 16, 2011 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? Link to comment https://forums.phpfreaks.com/topic/230844-mysql-connection-prevents-script-running/#findComment-1188396 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.