Thank you guys,
I found the database password by following these instructions:
http://www.softaculous.com/docs/How_to_edit_an_installation
However, if you use this code to connect to the database, it gives me an error... how is that possible?
$config = parse_ini_file('/config.ini');
// Connect to database
$mysqli = new mysqli($config['servername'], $config['username'], $config['password'], $config['dbname']);
printf("\n ".date("Y-m-d h:i:sa") . " - Establishing connection to " . $config['dbname'] . " on " . $config['servername'] . ".\n");
// Check connection
if ($mysqli->connect_error) {
die('Error : (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error);
printf("\n ".date("Y-m-d h:i:sa") . " - Connection failed. Returned error: " . mysqli_connect_error() . "\n");
} else {
printf("\n ".date("Y-m-d h:i:sa") . " - Connection successful.\n");
}
The error that is reported to me is this: Establishing connection to on. Error: (Access denied for user 'root' @ 'localhost' (using password: NO)) Access denied for user 'root' @ 'localhost' (using password: NO)
Anyone have any ideas? I am completely blocked ...