MySQL getting a 1042 error - Can't get hostname for your address

Discussion in 'Databases' started by barefoot, Sep 29, 2011.

  1. I installed the application as indicated in bug 228-16161DC8-23B0. Since then I continue to get a MySql error 1042 indicating it can’t fine the server. I can connect correctly to the database from SQL Workbench and can run the application on my system and connect to the database fine. I am using the following connect string:
    "user=********;password=***********;server=my02.Winhost.com;database=mysql_*************;port=3306"
     
    Last edited by a moderator: Oct 14, 2015
  2. FredC

    FredC Winhost Staff

    are you running the code from your web app hosted on our server? or remotely on your computer?
     
  3. When I run the code locally it works fine. When I push it to the server, I get the 1042 error code on the connection open.
     

Share This Page