The error means that the host name used for the MySQL server is not correct.
It usually happens when using an IP address as the host name.
your host should have a control panel that allows you to connect to the database using phpMyAdmin. in phpMyAdmin, it will show the host name in the upper left corner, use that host name in your connection file.
If you have additional questions on what details to use in your database connection, please contact your host.