MySQL命令行无法打开? [英] MySQL command line won't open?

查看:80
本文介绍了MySQL命令行无法打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了最新版本的MySQL.到现在为止,我已经在Windows XP上安装了它,但是我想将其安装在装有Windows 7的另一台计算机上.

I just installed the latest version of MySQL. Until Now I had it on Windows XP but I wanted to install this on another computer with Windows 7.

即使正确配置了所有内容,MySQL客户端也不会显示在开始"文件夹中.因此,我进入了MySQL的bin文件夹,尝试打开mysql.exe,但是它将立即关闭.

Even after configuring everything correctly, the MySQL client won't show up in the Start Folder. So I went to the bin folder of MySQL and tried opening mysql.exe but it would immediately close down.

然后我尝试在cmd&中打开mysql.exe;这就是我得到的

I then tried opening mysql.exe in cmd & this is what I get

C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N O)

C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N O)

有什么想法可以让它正常工作吗?

Any Ideas how I can get this to work?

推荐答案

提供用户名(root) C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql -uroot

Provide username (root) C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql -uroot

默认密码为空白,但如果设置为默认密码,则还需要提供密码

Default passsword is blank, but if you set it, you will need to provde password as well

这篇关于MySQL命令行无法打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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