Just a shot in the dark, but be sure the socket and port settings are correct for your setup (whatever that might be since you did not include that info in your post) and that mysql is actually running.
Be sure to scour http://www.mysql.com/documentation/mysql/bychapter/index.html
especially the section regarding running MySQL on windows.
Sounds like a MySQL setup problem unrelated to PHP.
JordanW wrote:
I'm getting this error message when I try the following code: $link = mysql_connect("localhost") or die("Could not connect"); print ("Connected successfully"); mysql_close($link); The scripts outputs: Warning: Can't create TCP/IP socket (10106) in C:\Projects\WebServer\admin.php on line 3 Warning: MySQL Connection Failed: Can't create TCP/IP socket (10106) in C:\Projects\WebServer\admin.php on line 3 Could not connect Any ideas? Thanks
-- John Krewson Programmer - SWORPS -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php