Home >Database >Mysql Tutorial >MySQL查询所有数据库表出错_MySQL

MySQL查询所有数据库表出错_MySQL

WBOY
WBOYOriginal
2016-06-01 13:02:161130browse

1、错误描述

1 queries executed, 0 success, 1 errors, 0 warnings

查询:show tables

错误代码: 1046
No database selected

执行耗时   : 0 sec
传送时间   : 0 sec
总耗时      : 0 sec
2、错误原因

show tables;

3、解决办法

use test;

show tables;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn