Alright I have a setup with Apache2Triad on a Windows 2000 computer. I have user accounts configured in MySQL and I can access them besides root, via MySQL Administrator remotely using my domain name. I have the MySQL port open. For some reason this code I have keeps giving me the error message Code: I cannot connect to the database because: Can't connect to MySQL server on 'localhost' (10061) . However no where in the source do I ask to connect to localhost, I need to connect to my domain name. Here is the source. Any ideas?