赞
踩
mysql -u root -p root
D:\MySQL\bin>mysql -u root -p root
Enter password: ****
ERROR 1049 (42000): Unknown database 'root'
排查问题:
一:首先我的本地myslq服务是开启的
二:环境变量配置了(如果没配 不会报这个错 是无法识别指令)
三:看报错 未知的数据库 root -p 密码 这是我登陆的密码
是不是我输入方式不对 -u 后面不加空格
D:\MySQL\bin>mysql -uroot -p root
Enter password: ****
ERROR 1049 (42000): Unknown database 'root'
-p 后面不加空格
D:\MySQL\bin>mysql -uroot -proot
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.6.22-log MySQL Community Server (GPL)
Copyright (c) 2000, 2014, 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>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。