Skip to content

Conversation

cuongpham2107
Copy link

Problem

When executing the SQL query, I encountered the following error:

Unknown collation: 'utf8mb4_0900_ai_ci'

This typically happens when the MySQL server version is older and doesn't support the 'utf8mb4_0900_ai_ci' collation (which was introduced in MySQL 8.0).

Solution

To ensure broader compatibility, I updated the database configuration to explicitly use:

  • charset: utf8mb4
  • collation: utf8mb4_general_ci

This collation is widely supported across MySQL versions and still provides good Unicode support.

Notes

Tested the connection and confirmed the error no longer occurs.

@designcomputer
Copy link
Owner

Thanks!

hyemin916 pushed a commit to hyemin916/mysql_mcp_server that referenced this pull request Aug 29, 2025
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