How to connect into mysql db?

Hello!
I create a database in the panel. Now I’m trying to connect and use this, but the connection doesn’t happen =/…

Take a look how I’m trying in the code:

$mysql_host = “mysql11.000webhost.com”;
$mysql_database = “id7032743_rellps_db”;
$mysql_user = “id7032743_rellps_user”;
$mysql_password = “000”;
$conecta_adm = mysqli_connect($mysql_host, $mysql_user, $mysql_password, $mysql_database);

mysqli_set_charset($conecta_adm,“utf8”);

Use localhost and that password seems too short…

well,

I already had tryied this way:
$mysql_host = “localhost”;
$mysql_password = “000000”;

I’m using xampp…

But the goal don’t happen yet =/
mysql_connect_error return this message:
Access denied for user

If you are using xampp you can’t remotely connect to 000webhost database

hmm, may be this so… =/
I’m going to test in ftp and get post here with the result…

Yeah, I get the test now, and putting this on ftp, all right’s happening… thanks!

1 Like