000webhost does not use localhost
click on your mysql icon in 000webhost control panel
at bottom of screen it shows what connect to use
thx a lot. I made a refinary.
define(‘DB_HOST’, ‘mysql5.000webhost.com’);
but it fails again.
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at mysql5.000webhost.com. This could mean your host’s database server is down.