troubleshooting Question

mysql_connect returns error 500

Avatar of detox1978
detox1978Flag for United Kingdom of Great Britain and Northern Ireland asked on
MySQL ServerPHPMicrosoft IIS Web Server
20 Comments3 Solutions7003 ViewsLast Modified:
hi All,

I recently installed MySQL and PHP on a Windows SBS 2011 running IIS7.5

I can connect to MySQL and PHP is running ok.

However when I link the two together using the code below I get error 500

$link = mysql_connect('host', 'user', 'password'); 
if (!$link) { 
die('Could not connect: ' . mysql_error()); 
echo 'Connected successfully'; 

Open in new window

Any suggestions?
Join our community to see this answer!
Unlock 3 Answers and 20 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros