简体   繁体   English

将数据从表单存储到localhost上的数据库表时遇到的此错误是什么?

[英]What is this error which I get when storing data from form to database table on localhost

Guys I was trying to store data from my signup form to database 'abc' inside 'user' table but I get below error :- 伙计们,我试图将注册表单中的数据存储到'user'表内'user'数据库'abc' 'user'中,但出现以下错误:-

Failed to run query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'labun.reg_users' doesn't exist 无法运行查询:SQLSTATE [42S02]:未找到基表或视图:1146表'labun.reg_users'不存在

I used localhost and I have to run my localhost as localhost:8080 我使用了本地主机,我必须将本地主机运行为本地主机:8080

Table 'labun.reg_users' doesn't exist 表'labun.reg_users'不存在

The error is self explanatory and it clearly says that there is no table named reg_users under database labun . 该错误是不言自明的,它清楚地表明在数据库labun下没有名为reg_users表。 Considering labun is your database name and you are using default dbo schema. 考虑到labun是您的数据库名称,并且您正在使用默认的dbo模式。

Check whether you really have a table with that name. 检查您是否真的有一个具有该名称的表。 You can connect to your MySQL server and use below commands 您可以连接到MySQL服务器并使用以下命令

use labun; //use the database in question
show tables; //list out all the tables in that DB

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM