You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These attributes are optional and only for use with MySQL 5.7 and earlier. They are also only available in the development version, not the release version. So I'll remove them from the documentation until I've done further testing.
MYSQL_CHARSET=utf8mb4
MYSQL_COLLATION=utf8mb4_unicode_ci
Copy file name to clipboardExpand all lines: README.md
-26Lines changed: 0 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -34,26 +34,6 @@ MYSQL_PORT=3306 # Optional: Database port (defaults to 3306 if not speci
34
34
MYSQL_USER=your_username
35
35
MYSQL_PASSWORD=your_password
36
36
MYSQL_DATABASE=your_database
37
-
38
-
# Optional: Charset and collation settings for compatibility with older MySQL versions
39
-
MYSQL_CHARSET=utf8mb4 # Optional: Character set (defaults to utf8mb4)
40
-
MYSQL_COLLATION=utf8mb4_unicode_ci # Optional: Collation (defaults to utf8mb4_unicode_ci)
41
-
MYSQL_SQL_MODE=TRADITIONAL # Optional: SQL mode (defaults to TRADITIONAL)
42
-
```
43
-
44
-
### Troubleshooting Collation Issues
45
-
If you encounter the error "Unknown collation: 'utf8mb4_0900_ai_ci'", this typically means you're connecting to an older MySQL version (5.7 or earlier) that doesn't support the newer collation. The server now automatically uses compatible settings, but you can override them:
46
-
47
-
For MySQL 5.7 and earlier:
48
-
```bash
49
-
MYSQL_CHARSET=utf8mb4
50
-
MYSQL_COLLATION=utf8mb4_unicode_ci
51
-
```
52
-
53
-
For very old MySQL versions (5.6 and earlier):
54
-
```bash
55
-
MYSQL_CHARSET=utf8
56
-
MYSQL_COLLATION=utf8_unicode_ci
57
37
```
58
38
59
39
## Usage
@@ -76,9 +56,6 @@ Add this to your `claude_desktop_config.json`:
76
56
"MYSQL_USER": "your_username",
77
57
"MYSQL_PASSWORD": "your_password",
78
58
"MYSQL_DATABASE": "your_database"
79
-
// Optional: Add these if you encounter collation issues
80
-
// "MYSQL_CHARSET": "utf8mb4",
81
-
// "MYSQL_COLLATION": "utf8mb4_unicode_ci"
82
59
}
83
60
}
84
61
}
@@ -104,9 +81,6 @@ Add this to your `mcp.json`:
104
81
"MYSQL_USER": "your_username",
105
82
"MYSQL_PASSWORD": "your_password",
106
83
"MYSQL_DATABASE": "your_database"
107
-
// Optional: Add these if you encounter collation issues
0 commit comments