问题描述
我在这里下载mysql安装程序:
然后我下载了MySql WorkBench。
在workbench的连接配置中,我将hostname设置为127.0.0.1,端口3306,用户:root,密码为空。我点击测试连接,它给我这个错误:
无法连接到'127.0.0.1'(10061)
我缺少什么?
请参阅用于启动服务,并且了解如何使其永久生效。
简而言之,测试它,用管理员权限打开一个DOS终端,并写入:
shell> C:\Program Files\MySQL\ [YOUR MYSQL VERSION PATH] \bin\mysqld
I download mysql installer here:
http://dev.mysql.com/downloads/installer/
And then I downloaded MySql WorkBench.
At workbench's connection configuration I put hostname as "127.0.0.1", port "3306", user: "root", password is empty. I click "test connection" and it gives me this error:
"Can't connect to MySQL server on '127.0.0.1' (10061)"
What am I missing?
See here for starting the service and here for how to make it permanent.In short to test it, open a "DOS" terminal with administrator privileges and write:
shell> "C:\Program Files\MySQL\[YOUR MYSQL VERSION PATH]\bin\mysqld"
这篇关于如何使用mysql创建localhost数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!