mysql 命令行错误 ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N

mysql 控制台错误提示

C:\Users\haihai187>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N
O)

 

解决办法

首先:C:\Users\haihai187>mysql -u root -p

回车

Enter password: *********

回车

Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 13 Server version: 5.6.25-log MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

 

然后:mysql> status

mysql> status -------------- mysql  Ver 14.14 Distrib 5.6.25, for Win64 (x86_64)

Connection id:          13 Current database: Current user:           root@localhost SSL:                    Not in use Using delimiter:        ; Server version:         5.6.25-log MySQL Community Server (GPL) Protocol version:       10 Connection:             localhost via TCP/IP Server characterset:    utf8 Db     characterset:    utf8 Client characterset:    gbk Conn.  characterset:    gbk TCP port:               3306 Uptime:                 30 min 7 sec

Threads: 5  Questions: 6919  Slow queries: 0  Opens: 95  Flush tables: 1  Open t ables: 82  Queries per second avg: 3.828 --------------

mysql>

 

问题解决

 

 http://www.cnblogs.com/mr-wid/archive/2013/05/09/3068229.html#d8

 

学习mysql :http://www.cnblogs.com/mr-wid/archive/2013/05/09/3068229.html#d8

 

http://www.cnblogs.com/mr-wid/archive/2013/05/09/3068229.html#c1

posted @ 2015-08-04 08:56  haihai187  阅读(796)  评论(0编辑  收藏  举报