Can't connect to MySQL server on 'localhost' (10061)

Discussion in 'Databases' started by jrmcgirr, May 14, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am very new to this and need some help. I am updating a website and am converting it from ASP.net to php and mysql. Kind of silly to be using discountasp.net, buI was wondering if it can be done without switching the hosting.

    I created a DB, and attempted to connect to it with the following

    mysql_connect(localhost, $username, $password);
    mysql_select_db($DB) or die('Unable to select database');


    Any help would be great. Thanks
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    From the statement you provided, you are trying to connect to an instance of mySQL on the IIS server, this will not work because no mySQL server is installed on the web server.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. I figured it out. Thanks
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page