-1

So I set up the database and a table within it, but I'm continuously getting the same error.

HERE'S the error

Is there any way to check if I made a password for this? I know that the default is to leave it blank so I'm not sure if maybe I made one in the past or not.

PHP CODE

<html>
<head>
<title>Database</title>
</head>
<body>

<?php
$connection = mysqli_connect('0.0.0.0', 'anthonyrodriguez726', '', 'dbtest' );

if(mysqli_connect_errno()) {
    die(
        "Database connection failed:" . mysqli_connect_error() . "(" . mysqli_connect_errno() . ")"
        );
}

?>

</body>
</html>
Anthony726
  • 75
  • 2
  • 4
  • 10

1 Answers1

0

Make sure that you have inited the database. Use mysql-ctl init to do so.

Ruben Daniels
  • 856
  • 4
  • 3