Bug #101692 collation_connection global set not Don't take effect
| Submitted: | 20 Nov 2020 7:37 | Modified: | 23 Nov 2020 15:45 |
|---|---|---|---|
| Reporter: | HULONG CUI | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 8.0.19 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | collation_connection | ||
[20 Nov 2020 7:37]
HULONG CUI
[20 Nov 2020 7:54]
HULONG CUI
i have set session value. that's ok mysql> set session collation_connection=utf8_general_ci; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> show variables like '%coll%'; +-------------------------------+--------------------+ | Variable_name | Value | +-------------------------------+--------------------+ | collation_connection | utf8_general_ci | | collation_database | utf8_general_ci | | collation_server | utf8_general_ci | | default_collation_for_utf8mb4 | utf8mb4_0900_ai_ci | +-------------------------------+--------------------+ 4 rows in set (0.00 sec) global set not's effect
[20 Nov 2020 13:53]
MySQL Verification Team
Hi Mr. jacky, Thank you for your bug report. However, it is not a bug. Namely, when changing "collation_connection" on the global level, it will affect all future connections, but not the current one. Current one is affected only by setting the session variable. This is all fully explained in our Reference Manual. Not a bug.
[23 Nov 2020 15:45]
HULONG CUI
i try do: step1: mysql>set global collation_connection=utf8_general_ci; mysql>exit; step2: mysql -uroot -p mysql> show variables like '%coll%'; +-------------------------------+--------------------+ | Variable_name | Value | +-------------------------------+--------------------+ | collation_connection | utf8mb4_0900_ai_ci | find not have changed。 It's the same default value as before。
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.063 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.