Re: Can't Start MySQL Server from PHP

From: Thomas 'PointedEars' Lahn <PointedEars_at_web.de>
Date: Mon, 25 Jun 2018 06:03:04 +0200
Message-ID: <25939552.iPxdAFIZsN_at_PointedEars.de>


[Quoted] Joseph Hesse wrote:

> I am running MySQL 8.011 and PHP 7.2.6 on Fedora 28 Linux.
>
> I tried PHP to connect to the server with the usual command:
>
> $conn = _at_mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR
> die('Could not connect to MySQL: ' . mysqli_connect_error() );
>
> and got the error message:
>
> "Could not connect to MySQL: The server requested authentication method
> unknown to the client" […]

[Quoted] Google for the function identifier, and the error message in double quotes.

Next time, do that before you post.

-- 
PointedEars
Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn>
Twitter: _at_PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Received on Mon Jun 25 2018 - 06:03:04 CEST

Original text of this message