Skip to content

Commit 837877d

Browse files
Add: Support for MYSQL_PORT configuration
1 parent 2a1a7a9 commit 837877d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mysql_mcp_server/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def get_db_config():
1717
"""Get database configuration from environment variables."""
1818
config = {
1919
"host": os.getenv("MYSQL_HOST", "localhost"),
20+
"port": int(os.getenv("MYSQL_PORT", "3306")),
2021
"user": os.getenv("MYSQL_USER"),
2122
"password": os.getenv("MYSQL_PASSWORD"),
2223
"database": os.getenv("MYSQL_DATABASE")

0 commit comments

Comments
 (0)