Skip to content

Commit 0054c37

Browse files
Update README.md Remove MYSQL_CHARSET & MYSQL_COLLATION attributes
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
1 parent 0a13135 commit 0054c37

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

README.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,6 @@ MYSQL_PORT=3306 # Optional: Database port (defaults to 3306 if not speci
3434
MYSQL_USER=your_username
3535
MYSQL_PASSWORD=your_password
3636
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
5737
```
5838

5939
## Usage
@@ -76,9 +56,6 @@ Add this to your `claude_desktop_config.json`:
7656
"MYSQL_USER": "your_username",
7757
"MYSQL_PASSWORD": "your_password",
7858
"MYSQL_DATABASE": "your_database"
79-
// Optional: Add these if you encounter collation issues
80-
// "MYSQL_CHARSET": "utf8mb4",
81-
// "MYSQL_COLLATION": "utf8mb4_unicode_ci"
8259
}
8360
}
8461
}
@@ -104,9 +81,6 @@ Add this to your `mcp.json`:
10481
"MYSQL_USER": "your_username",
10582
"MYSQL_PASSWORD": "your_password",
10683
"MYSQL_DATABASE": "your_database"
107-
// Optional: Add these if you encounter collation issues
108-
// "MYSQL_CHARSET": "utf8mb4",
109-
// "MYSQL_COLLATION": "utf8mb4_unicode_ci"
11084
}
11185
}
11286
}

0 commit comments

Comments
 (0)