Getting Error "Unknown MySQL server host" during importing the sql file?

6,094

This is a name resolution issue. The machine you're using to import this sql file is not able to resolve the MySQL Server hostname 'Courier'.

Are you sure this is the correct hostname? Can you provide the output of a 'nslookup Courier' and the command you're using to import?

If you're not sure about the hostname, try importing using the MySQL Server ip address.

Hope this helps.

Share:
6,094

Related videos on Youtube

Mughil
Author by

Mughil

Updated on September 18, 2022

Comments

  • Mughil
    Mughil almost 2 years

    In mysql server, when importing the sql file into the db. I am getting as error as below. So, can you help where the issues lies that is in mysql server config or the sql file

    ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'Courier' (1)

    Mysql Server Version : 5.0.45

    • qweet
      qweet over 12 years
      Have you got an entry called 'Courier' in your hosts file? If not, try specifying the host in its IP equivalent
    • Mughil
      Mughil over 12 years
      there is no entry with 'Courier' in your hosts file