查询数据表属于哪个数据库 'userpurchase' 为数据表名,更改数据表名字即可 SELECT table_schema FROM information_schema.TABLES WHERE table_name = 'userpurchase';