Change Is Inevitable
  • Home
  • MySQL
    • MySQL-Articles
    • AWS RDS
    • Percona Xtradb Cluster
    • MariaDB
    • Galera Cluster
    • ProxySQL
    • MySQL-Scripts
    • MySQL tools
    • MySQL Resources
  • Tools
    • MySQL Advisor
    • MySQL Random Data Generator
    • Postgresql Random Data Generator
    • Clean Prompt
  • General
    • binary-to-decimal
    • Fermat’s Theorem
    • Review
    • Just for fun
    • Personal
  • Contact Me
    • Copyright
    • MySQL Podcast (Youtube)
    • MySQL Podcast (Spotify)
Recent Posts
  • MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • How to setup and use Percona Binlog Server (PBS)
  • MySQL Major Version Upgrade Checklist – how to
  • InnoDB Flushing is simple – explained
  • MySQL Tools for Performance Tuning and Test Data Generation
Recent Comments
  • Kedar on MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • Jean-François Gagné on MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • Reggie on A Unique Foreign Key issue in MySQL 8.4
  • Kedar on How to fix write latency in MySQL 8.4 Upgrade
  • Kedar on How to fix write latency in MySQL 8.4 Upgrade
Home » character set MySQL
Change Is Inevitable

Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects

  • Home
  • MySQL
    • MySQL-Articles
    • AWS RDS
    • Percona Xtradb Cluster
    • MariaDB
    • Galera Cluster
    • ProxySQL
    • MySQL-Scripts
    • MySQL tools
    • MySQL Resources
  • Tools
    • MySQL Advisor
    • MySQL Random Data Generator
    • Postgresql Random Data Generator
    • Clean Prompt
  • General
    • binary-to-decimal
    • Fermat’s Theorem
    • Review
    • Just for fun
    • Personal
  • Contact Me
    • Copyright
    • MySQL Podcast (Youtube)
    • MySQL Podcast (Spotify)

Browsing Tag

character set MySQL

1 post
mysql8-upgrade-collation
  • MariaDB
  • MySQL
  • MySQL Upgrade
  • Technical
  • 3 comments

MySQL 8 utf8mb4_0900_ai_ci collation confusion

  • Kedar
  • November 18, 2024
Recently I was asked a question: Why am I getting utf8mb4_0900_ai_ci as the default collation in MySQL 8, despite setting the server to use utf8mb4_general_ci? With the upgrade to MySQL…
View Post
MySQL Podcast (Youtube)
RSS feed: MySQL Podcast (Spotify) MySQL Podcast (Spotify)
  • MySQL Major Version Upgrade Checklist (Zero Downtime Strategy)
    Upgrading MySQL major versions in production is never just a version bump - it’s a carefully planned process involving compatibility checks, replication strategy, testing, and controlled cut-over.In this episode, we walk through a practical MySQL Major Version Upgrade Checklist based on real-world DBA workflows. We are covering MySQL replication as base setup for upgrade. It […]
Search:
... ...
  • MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • How to setup and use Percona Binlog Server (PBS)
  • MySQL Major Version Upgrade Checklist – how to
  • InnoDB Flushing is simple – explained
  • MySQL Tools for Performance Tuning and Test Data Generation

3 responses to “MySQL 8 utf8mb4_0900_ai_ci collation confusion”

  1. veer Avatar
    veer
    November 21, 2024

    Its nice explanation Kedar. looking forward to your next blog

    Reply
  2. Pon Suresh Avatar
    Pon Suresh
    November 18, 2024

    Hi Kedar,

    Nice post 🙂

    When you execute SET NAMES ‘utf8mb4’ COLLATE ‘utf8mb4_general_ci’, it sets the client character set and collation for the current session. However, this command does not change the server’s default collation for the database or tables unless explicitly specified in a create table statement.

    The SET NAMES command primarily impacts how data is interpreted between the client and server during the session. Therefore, if no collation is explicitly mentioned in a create table statement, the server applies its default collation (e.g., utf8mb4_0900_ai_ci) to the new table.

    Reply
    1. Kedar Avatar
      Kedar
      November 19, 2024

      Right. Aim was to look for follow the usual-thought-process and reach to the solution. I will borrow your explanation and add it to the post for those who won’t read the comments.
      Thanks.

      Reply
Change Is Inevitable
Designed & Developed by Code Supply Co.