connect 000webhost.com with php mysql

0

I want to connect my php connection file to the 000webhost database

<?php
	$servidor = "localhost";
	$usuario = "root";
	$password = "";
	$bdd = "matrix";

//crear conexion
	$conn = new mysqli($servidor, $usuario, $password, $bdd);
//verificar la conexion
	if($conn->connect_error){
          die("conexión fallida" . $conn->connect_error);
	}
?>

Database Name id7710051_matrix Database User id7710051_root Database Host localhost

because when the system is on the internet I get an error: Connection failedProxySQL Error: Access denied for user 'root' @ '2a02: 4780: bad: f00d :: 14' (using password: NO)

    
asked by Iveth Rosales 04.11.2018 в 01:33
source

0 answers