如何使用mysql创建localhost数据库? [英] How to create localhost database using mysql?

查看:1267
本文介绍了如何使用mysql创建localhost数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里下载mysql安装程序:



http://dev.mysql.com/downloads/installer/



然后我下载了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数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆