将数据从表单存储到本地主机上的数据库 table 时出现的错误是什么
What is this error which I get when storing data from form to database table on localhost
伙计们,我试图将我的注册表单中的数据存储到 'user'
table 中的数据库 'abc'
,但出现以下错误:-
Failed to run query: SQLSTATE[42S02]: Base table or view not found:
1146 Table 'labun.reg_users' doesn't exist
我使用本地主机,我必须 运行 我的本地主机为 localhost:8080
Table 'labun.reg_users' doesn't exist
错误是不言自明的,它清楚地表明在数据库 labun
下没有名为 reg_users
的 table。考虑到 labun
是您的数据库名称,并且您使用的是默认 dbo
架构。
检查您是否真的有 table 同名的人。您可以连接到 MySQL
服务器并使用以下命令
use labun; //use the database in question
show tables; //list out all the tables in that DB
伙计们,我试图将我的注册表单中的数据存储到 'user'
table 中的数据库 'abc'
,但出现以下错误:-
Failed to run query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'labun.reg_users' doesn't exist
我使用本地主机,我必须 运行 我的本地主机为 localhost:8080
Table 'labun.reg_users' doesn't exist
错误是不言自明的,它清楚地表明在数据库 labun
下没有名为 reg_users
的 table。考虑到 labun
是您的数据库名称,并且您使用的是默认 dbo
架构。
检查您是否真的有 table 同名的人。您可以连接到 MySQL
服务器并使用以下命令
use labun; //use the database in question
show tables; //list out all the tables in that DB