mysql中输入命令没反应

阅读: 评论:0

mysql中输入命令没反应

mysql中输入命令没反应

我是小白,大佬勿喷

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时在命令后加;哦

本文发布于:2024-02-02 12:30:42,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170684824243812.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:命令   mysql
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23