Skip to content

feat: add charset and collation settings for compatibility with older MYSQL versions#56

Merged
designcomputer merged 1 commit intodesigncomputer:mainfrom
azrilaiman2003:main
May 30, 2025
Merged

feat: add charset and collation settings for compatibility with older MYSQL versions#56
designcomputer merged 1 commit intodesigncomputer:mainfrom
azrilaiman2003:main

Conversation

@azrilaiman2003
Copy link
Contributor

@azrilaiman2003 azrilaiman2003 commented May 28, 2025

Before

image

After

image

env example

"env": {
"MYSQL_CHARSET": "utf8mb4",
"MYSQL_COLLATION": "utf8mb4_unicode_ci"
}

@designcomputer designcomputer merged commit 9966700 into designcomputer:main May 30, 2025
2 checks passed
@designcomputer
Copy link
Owner

Thanks!

@vladaman
Copy link

This is not only related to older versions but also to MariaDB: https://dba.stackexchange.com/a/314442

Using opencode with mcp and environment variables this setting seems to be getting ignored.

"mysql": {
            "type": "local",
            "command": ["uvx", "mysql_mcp_server"],
            "environment": {
                "MYSQL_HOST": "localhost",
                "MYSQL_PORT": "3306",
                "MYSQL_USER": "xxx",
                "MYSQL_PASSWORD": "xxxx",
                "MYSQL_DATABASE": "xxxx",
                "MYSQL_CHARSET": "utf8mb4",
                "MYSQL_COLLATION": "utf8mb4_unicode_ci"
            }
        }

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.

3 participants