码迷,mamicode.com
首页 > 数据库 > 详细

mysql 命令行错误

时间:2015-08-04 09:17:46      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:

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>

 

问题解决

 

mysql 命令行错误

标签:

原文地址:http://www.cnblogs.com/haihai187/p/4701006.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!