MySQL查询所有数据库表出错

1、错误描述

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


查询:show tables


错误代码: 1046
No database selected


执行耗时   : 0 sec
传送时间   : 0 sec
总耗时      : 0 sec


select * from t_people_info;


23:20:02	select * from t_people_info LIMIT 0, 50000	
Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the sidebar.	0.000 sec


2、错误原因

   show tables;


3、解决办法

   use test;

   show tables;

原文地址:https://www.cnblogs.com/hzcya1995/p/13314834.html