Skip to content

fix(mysql): Change default charset to utf8mb4 - #7615

Merged
yoshiokatsuneo merged 2 commits into
getredash:masterfrom
sunakan:set-utf8mb4-mysql-charset
Feb 19, 2026
Merged

yoshiokatsuneo merged 2 commits into
getredash:masterfrom
sunakan:set-utf8mb4-mysql-charset

Conversation

@sunakan

@sunakan sunakan commented Jan 30, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Other

Description

Both utf8 and utf8mb3 are deprecated in MySQL 8.0 and will be removed in a future major release. This updates the default charset to utf8mb4, which is the recommended charset for all new applications.

How is this tested?

  • Manually

Ran SHOW VARIABLES LIKE 'char%' before and after the change (see screenshots below).

Before

before

After

after

MySQL 8.0 changed the server default charset from latin1 to utf8mb4.
This aligns Redash's MySQL connector with the modern MySQL defaults.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@yoshiokatsuneo
yoshiokatsuneo merged commit ffe0a33 into getredash:master Feb 19, 2026
10 checks passed
@yoshiokatsuneo

Copy link
Copy Markdown
Contributor

@sunakan

Great !
I confirmed that I can run query on MySQL using this PR.
Thank you for your contribution !

woogakoki added a commit to wooga/redash that referenced this pull request Feb 25, 2026
* master: (69 commits)
  Update Python version to 3.13 (getredash#7636)
  Update plotly.js to 3.3.1, react-pivottable to 0.11.0 (getredash#7634)
  Add charset option to RDS MySQL datasource (getredash#7616)
  Aggregate y value for same x (getredash#7631)
  fix(mysql): Change default charset to utf8mb4 (getredash#7615)
  Update packages for compatibility with setuptools 82 (getredash#7622)
  Snapshot: 26.02.0-dev
  chore: support ipv6 for server in docker (getredash#7596)
  Add impersonation option in trino datasource (getredash#7605)
  Fix Elasticsearch connector configuration key mismatch (getredash#7607)
  duckdb: Show catalog (database) where applicable (e.g. Motherduck) (getredash#7599)
  Snapshot: 26.01.0-dev
  Feature/catch notsupported exception (getredash#7573)
  Multi-org: format base path, not including protocol (getredash#7260)
  fix(destinations): Handle unicode characters in webhook notifications (getredash#7586)
  Persist updated values and apply saved dashboard parameters (getredash#7570)
  Add ibm-db package to enable DB2 as datasource: (getredash#7581)
  Snapshot: 25.12.0-dev
  PostgreSQL: allow connection parameters to be specified (getredash#7579)
  Add lineShape option for Line and Area charts (getredash#7582)
  ...
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

Successfully merging this pull request may close these issues.

2 participants