Skip to content

Commit e23a474

Browse files
authored
Update README.md
1 parent 05c22e8 commit e23a474

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# MCP Server for MySQL based on NodeJS
23
[![smithery badge](https://smithery.ai/badge/@benborla29/mcp-server-mysql)](https://smithery.ai/server/@benborla29/mcp-server-mysql)
34

@@ -79,6 +80,13 @@ The easiest way to install and configure this MCP server is through [Smithery](h
7980
```bash
8081
npx -y @smithery/cli@latest install @benborla29/mcp-server-mysql --client claude
8182
```
83+
-- or --
84+
if you don't want to use smithery, use this
85+
```
86+
npx mcprunner MYSQL_HOST=127.0.0.1 MYSQL_PORT=3306 MYSQL_USER=root MYSQL_PASS=root MYSQL_DB=demostore ALLOW_INSERT_OPERATION=true ALLOW_UPDATE_OPERATION=true ALLOW_DELETE_OPERATION=false -- npx -y @benborla29/mcp-server-mysql
87+
```
88+
Don't forget to replace the `env` values on that command.
89+
8290

8391
During configuration, you'll be prompted to enter your MySQL connection details. Smithery will automatically:
8492
- Set up the correct environment variables
@@ -489,6 +497,14 @@ echo "$(which node)/../../lib/node_modules"
489497
```sql
490498
CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
491499
```
500+
@lizhuangs
501+
502+
7. I am encountering `Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'dotenv' imported from` error
503+
try this workaround:
504+
```bash
505+
npx -y -p @benborla29/mcp-server-mysql -p dotenv mcp-server-mysql
506+
```
507+
Thanks to @lizhuangs
492508

493509
## Contributing
494510

0 commit comments

Comments
 (0)