Bug 1646158
| Summary: | PHP Warning: mysqli::mysqli(): Server sent charset (255) unknown to the client. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Karel Volný <kvolny> |
| Component: | php | Assignee: | Remi Collet <rcollet> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | RHEL Stacks Subsystem QE <rhel-stacks-subsystem-qe> |
| Severity: | unspecified | Docs Contact: | Lenka Špačková <lkuprova> |
| Priority: | unspecified | ||
| Version: | 7.6 | CC: | jorton, lkuprova, pasik, rcollet |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Known Issue | |
| Doc Text: |
.The `php-mysqlnd` database connector does not work with MySQL 8.0
The default character set has been changed to `utf8mb4` in MySQL 8.0 but this character set is unsupported by the `php-mysqlnd` database connector. Consequently, `php-mysqlnd` fails to connect in the default configuration. To work around this problem, specify a known character set as a parameter of the MySQL server configuration. For example, modify the `/etc/opt/rh/rh-mysql80/my.cnf.d/mysql-server.cnf` file to read:
----
[mysqld]
character-set-server=utf8
----
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-06-17 11:05:47 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Karel Volný
2018-11-05 09:38:42 UTC
doc text looks good to me, as this a the simple way. BTW, charset can also be set from PHP using "mysqli_set_charset" function. This issue is resolved in PHP 7.x in RHEL8. |