MySQL Forums
Forum List  »  Newbie

Re: Can't connect to DB after reboot from PHP
Posted by: bulent ozgul
Date: October 29, 2021 01:02PM

Hi Peter,

I'll give more information. My PHP code:

<?php
$mysqli_connection = new MySQLi('localhost', 'UNAME', 'PASSWORD', 'DB');
if ($mysqli_connection->connect_error) {
echo "Not connected, error: " . $mysqli_connection->connect_error;
}
else {
echo "Connected.";
}

and the message I get after reboot:

Warning: mysqli::__construct(): PHP was built without openssl extension, can't send password encrypted in ZZZZZZ\test.php on line 2

Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'user'@'localhost' (using password: YES) in ZZZZZZ\test.php on line 2
Not connected, error: Access denied for user 'user'@'localhost' (using password: YES)

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.