MySQL Forums
Forum List  »  PHP

Error 2054 Server sent charset unknown to the client.
Posted by: Peter Sjöstedt
Date: June 01, 2020 11:54PM

I can't solve the problem despite several attempts, what am I doing wrong?

I use the following;
Version of PHP, PHP 7.4.6.
Version of mySQL, Server version: 8.0.20 MySQL Community Server - GPL.
Operating system, Windows 10.
Web Server, IIS (Version 10.0.18362.1)
I have used, mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '*********';
With the result, Query OK, 0 rows affected (0.01 sec)
Have the following code line in my PHP, $link = mysqli_connect($host, $user, $password, $dbname);

Can anyone explain to me what is wrong and what to do to solve the problem?

Options: ReplyQuote

Sorry, only registered users may post in this forum.

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.