Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL 8.0.1 error “Server sent charset unknown to the client.” #13756

Open
sthopd opened this issue Nov 23, 2018 · 5 comments
Open

MySQL 8.0.1 error “Server sent charset unknown to the client.” #13756

sthopd opened this issue Nov 23, 2018 · 5 comments

Comments

@sthopd
Copy link

sthopd commented Nov 23, 2018

Hello,
I have updated the live-site to v3.6.0 and still get the same error when I ‘Setup a Website’.
Error:
Cannot connect to the database:
Server sent charset unknown to the client. Please, report to the developers

How do I solve the problem of “Server sent charset unknown to the client.”?!
I have newly installed the Matomo analytics site on my Production server.
On my production server, I get an error when creating the first site-to-be-analyzed by Matomo.
Error:
“SQLSTATE[HY000] [2054] Server sent charset unknown to the client. Please, report to the developers”
I see that within many PHP-code pages of Matomo, the character set for database handling is set -hard coded- to UTF8 !
Please developer, change this -hard coded- setting into a flexible variable that every webmaster can maintain in the config-file (…\config\config.ini.php).
or change the -hard coded- content to the a modern character set variant, such as: utf8mb4 .
Any help would be appreciated.
Friendly regards,
Simon
Environment:
Matomo 3.5.1
MySQL 8.0.12 (different port)
PHP 7.2.7
IIS 10 webserver on Windows 10 pro OS

Have a look at: https://bugs.php.net/bug.php?id=74461 .
and: MySQL Bugs: #85946: MySQL 8.0.1 breaks php compatibilty .
Where should I change the CharSet setting: in Matomo? in MySQL? in PHP?

20181001 matomo live - set up first website

20180927 mysql8012 character set in live site

@tsteur
Copy link
Member

tsteur commented Nov 23, 2018

see #9785

if possible change it to utf8

@sthopd
Copy link
Author

sthopd commented Nov 23, 2018 via email

@MarceloNascimento
Copy link

I am with the same erro here, but i'm using mysql_connect, i belivie that are some thing into xamp, wamp, apache.

@narendra-pal-singh
Copy link

narendra-pal-singh commented Aug 13, 2019

I was facing same issue so i have reinstall MySQL 8 with different Authentication Method "Use Legacy Authentication Method(Retain MySQL 5.x compatibility)" then work properly.

Choose Second Method of Authentication while installing.

Good Luck!

@zubair86
Copy link

zubair86 commented Feb 9, 2021

I was facing same issue so i have reinstall MySQL 8 with different Authentication Method "Use Legacy Authentication Method(Retain MySQL 5.x compatibility)" then work properly.

Choose Second Method of Authentication while installing.

Good Luck!

Could you please share commands with which we can reinstall and use different Authentication Method?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants