Microsoft Windows 2000 [Version 5.00.2195]
(C) 版权所有 1985-2000 Microsoft Corp.
C:\Documents and Settings\Administrator>mysql -uroot -p
Enter password: **
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
C:\Documents and Settings\Administrator>mysql -uroot -p
Enter password: ****************
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
C:\Documents and Settings\Administrator>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 28 to server version: 4.0.20a-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
你的用户名错了,ODBC不是mysql的默认用户名,
你在dos的命令提示符下用以下方式进入mysql就可以了:
C:\Documents and Settings\Administrator>mysql -uroot -p
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 23 to server version: 4.1.12-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
说明:因为mysql的bin目录已经写到环境变量中去了,所以可以这样登录。
又因为你的是空密码,所以你可以用mysql -uroot 就可以了,
如果你看到
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 23 to server version: 4.1.12-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
就说明你已经正常登录,然后你再用我上面所说方法试试。
我知道你的应该可以,可是当我在mysql > 后输入你写和那个修改用户密码的语名时,它说我没有选择任何数据库 ,当我输入use mysql;按回车时它提示我如下信息:
ERROR 1044: Access denied for user: '@localhost' to database 'mysql'
我查了一下当前sever信息是:
Connection id: 8
Current database:
Current user: ODBC@localhost
SSL: Not in use
Server version: 4.0.20a-nt
Protocol version: 10
Connection: localhost via TCP/IP
Client characterset: latin1
Server characterset: gbk
TCP port: 3306
Uptime: 20 min 40 sec