照亮\数据库\连接::runQueryCallback C:\wamp\www\LaravelProject\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671
错误:
照亮\数据库\QueryException SQLSTATE[42S02]:未找到基表或视图:1146 表“db_laravel.registers”不存在(SQL:插入 registers (name, email, updated_at , created_at) 值 (dfmgkm, kmfgk, 2020-09-08 04:56:41, 2020-09-08 04:56:41))
”由于连接失败,我无法向 MySQL 插入值,这是 Connection.php 文件中的错误,但我的迁移成功了”
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
数据库端口=3306
DB_DATABASE=db_laravel
protected function runQueryCallback($query, $bindings, Closure $callback)
{
try {
$result = $callback($query, $bindings);
}
catch (Exception $e) {
throw new QueryException(
$query, $this->prepareBindings($bindings), $e
);
}
return $result;
}
噜噜哒
跃然一笑
料青山看我应如是