I can't connect to my database. Have this error
Warning: mysqli_connect() [function.mysqli-connect]: (HY000/1130): Host '31.170.160.93' is not allowed to connect to this MySQL server in /home/a7422059/public_html/includes/database.php on line 12
and in php it looks like
config.php
defined('DB_SERVER') ? null : define("DB_SERVER", "31.170.160.93");// or server29.000webhost.com
defined('DB_USER') ? null : define("DB_USER", "*****");
defined('DB_PASS') ? null : define("DB_PASS", "*****");
defined('DB_NAME') ? null : define("DB_NAME", "a7422059_photo");
and connection
database.php
public function open_connection(){
$this->connection = mysqli_connect(DB_SERVER , DB_USER , DB_PASS , DB_NAME);
if(!$this->connection){
die("Database connection failed:" . mysqli_error($this->connection));
}
}
what I'm doing wrong?