This repository was archived by the owner on Mar 1, 2026. It is now read-only.
Commit de98bbc
Bug#35054579 Issue in Oracle MySQL Client using utf16 charset
Summary:
Porting fix for Bug#35054579 from 8.0.33 back to 8.0.32.
Drop patch when porting forward past 8.0.33.
Description:
If we try to connect the server with mysql client using
--default-character-set=utf1 using a authentication plugin,
the client connection is failing with below error
ERROR 2059 (HY000): Authentication plugin '../../mysql_native_password' cannot be loaded:
'../../mysql_native_password.so': cannot open shared object file: No such file or directory
instead of
ERROR 2059 (HY000): Authentication plugin '../../mysql_native_password' cannot be loaded:
No paths allowed for shared library
Analysis:
As per mysql documentation utf16, utf32, ucs2 and utf16le are
Impermissible Client Character Sets, so when the client tries to
connect the server with these charsets, the client has to reject the
connections.
Fix:
While parsing the mysq client options, detecting the
Impermissible Client Character Sets and rejecting the connection.
Change-Id: Ib0d6624c792214b7b44fbb7040646f04081fb3e0
Differential Revision: D55337684
fbshipit-source-id: ae3518a1 parent c7d3371 commit de98bbc
5 files changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4792 | 4792 | | |
4793 | 4793 | | |
4794 | 4794 | | |
4795 | | - | |
| 4795 | + | |
4796 | 4796 | | |
4797 | 4797 | | |
4798 | 4798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10248 | 10248 | | |
10249 | 10249 | | |
10250 | 10250 | | |
| 10251 | + | |
| 10252 | + | |
| 10253 | + | |
| 10254 | + | |
| 10255 | + | |
| 10256 | + | |
| 10257 | + | |
| 10258 | + | |
| 10259 | + | |
| 10260 | + | |
| 10261 | + | |
10251 | 10262 | | |
10252 | 10263 | | |
10253 | 10264 | | |
| |||
0 commit comments