-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
-db_charset
doesn't behave the same way as deprecated -db-config-*-charset
settings
#4654
Comments
dasl-
added a commit
to dasl-/vitess
that referenced
this issue
Apr 16, 2019
… running in managed or non-managed mode. Addresses vitessio#4654 Signed-off-by: dleibovic <dleibovic@etsy.com>
Fixed by #4814 |
frouioui
pushed a commit
to planetscale/vitess
that referenced
this issue
Mar 26, 2024
…y flag `--unsafe-allow-foreign-keys` implies setting `FOREIGN_KEY_CHECKS=0` (vitessio#4654) * backport of 4653 * resolved conflict Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --------- Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview of the Issue
We use emoji in our application and because of that we need to use
utf8mb4
. We still have the old-style-db-config-<user>-charset
settings which we changed toutf8mb4
and everything worked as expected. While working with this, I saw the deprecation notice, so I attempted to just use-db_charset utf8mb4
. This did not work. @deepthi was able to point me tofunc Init(defaultSocketFile string) (*DBConfigs, error)
which shows that-db_charset
requires-db_host
. Unfortunately, when I set-db_host
, my.cnf gets ignored which causes other issues.Expected behavior would be to have setting
-db_charset
be the same behavior as setting the charset on a user level.Reproduction Steps
Spin up docker
vitess/base
.Start vttablet with
-db-config-dba-charset utf8mb4 -db-config-app-charset utf8mb4 -db-config-appdebug-charset utf8mb4 -db-config-allprivs-charset utf8mb4 -db-config-repl-charset utf8mb4 -db-config-filtered-charset utf8mb4
optionsInsert data with emoji.
SELECT data, see emoji in output.
Spin up docker
vitess/base
.Start vttablet with -db_charset utf8mb4`
Insert data with emoji.
SELECT data, see
?
where emoji output should be.Binary version
Example:
Operating system and Environment details
docker vitess/base
The text was updated successfully, but these errors were encountered: