Warning: mysqli_connect(): (HY000/2005): Error when connecting php

Asked

Viewed 312 times

0

I’ve had this bug for two days, here’s my connection code:

$dbc = mysqli_connect('fdb17.atspace.me
','users','senha','bd','33:06') or die ("Erro connecting to mySQL server");




        //mysqli_close($dbc);

        $query = 'SELECT * FROM tips';
        $result = mysqli_query($dbc,$query);

makes that mistake

Warning: mysqli_connect(): (HY000/2005): Unknown Mysql server host 'fdb17.atspace.me ' (-2) in /srv/disk11/2446146/www/tipsbet365.atspace.cc/index.php on line 54 Error Connecting to mysql server

  • See the error message: Unknown Mysql server host 'fdb17.atspace.me '. PHP did not find the database server. See if you typed right and remove the line break.

  • 2

    Take this line break on the hostname.

  • really just was , a line break, back to normal, thanks, thank you, I can’t put your as a response, I don’t know why.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.