mysql_mcp_server icon indicating copy to clipboard operation
mysql_mcp_server copied to clipboard

是bug吗?

Open ocean-zhc opened this issue 11 months ago • 2 comments

Image 我看代码是读取环境变量的?为啥不生效呢?

config = {

"host": os.getenv("MYSQL_HOST", "localhost"),

"port": int(os.getenv("MYSQL_PORT", "3306")),

"user": os.getenv("MYSQL_USER"),

"password": os.getenv("MYSQL_PASSWORD"),

ocean-zhc avatar Mar 03 '25 06:03 ocean-zhc

I have not tested with Cline. Have you tried creating a simple example using just the Claude App to see if the environment variable gets passed correctly?

designcomputer avatar Mar 05 '25 02:03 designcomputer

Image 我看代码是读取环境变量的?为啥不生效呢? config = {

"host": os.getenv("MYSQL_HOST", "localhost"),

"port": int(os.getenv("MYSQL_PORT", "3306")),

"user": os.getenv("MYSQL_USER"),

"password": os.getenv("MYSQL_PASSWORD"),

Your understanding is wrong. The IP in the red part is the IP of your computer, which means that the account or password for your database connection is wrong. You can copy the complete error to openai to see, haha

xuzexin-hz avatar Apr 09 '25 07:04 xuzexin-hz