I cant connect to mysql server
  • Hi Dootgeek,

    Im getting this error in establishing a database connection: Warning: mysqli::mysqli(): (HY000/1130): Host 's1.1.ai' is not allowed to connect to this MySQL server in /home/ai_mitzaltair/www/public/faculty/sample.php on line 6 Cannot establish a valid connection to web server

    this is my simple php script:
    <?php<br />
    public function __construct(){
    parent::__construct('199.102.237.15','ai_mitzaltair','OtDzvRWF1Q7hUQ','ai_mitzaltair');

    if(mysqli_connect_error()){
    die('Cannot establish a valid connection to web server');
    }

    Please help. Thanks.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook

Share Me

  • Please share this topic with your friends. Click any of the icons below:
  • stumbleupon
  • Twitter
  • facebook
  • myspace
  • technorati
  • reddit
  • fark
  • email