当前位置: 移动技术网 > IT编程>数据库>Mysql > mysql 输入show databases 没反应

mysql 输入show databases 没反应

2019年06月09日  | 移动技术网IT编程  | 我要评论

我是小白,大佬勿喷
***

mysql 输入show databases 没反应

一句话
不要忘记使用mysql时在命令后加;

* * *
在linux输入以下命令
mysql
终端显示以下文本

welcome to the mysql monitor.  commands end with ; or \g.
your mysql connection id is 7
server version: 5.7.26-0ubuntu0.18.04.1 (ubuntu)

copyright (c) 2000, 2019, 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>

输入show databases

mysql> show databases
    ->

原因是没有在databases后加;
输入show databases;看以下效果

mysql> show databases;
+--------------------+
| database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)

所以不要忘记使用mysql时在命令后加;

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网