老师好,我下完mcshop的代码后,根据视频教程,在执行
php artisan db:seed时,出现以下错误
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
667▕ // If an exception occurs when attempting to run a query, we'll format the error
668▕ // message to include the bindings with SQL, which will make this exception a
669▕ // lot more helpful to the developer instead of just the database's errors.
670▕ catch (Exception $e) {
➜ 671▕ throw new QueryException(
672▕ $query, $this->prepareBindings($bindings), $e
673▕ );
674▕ }
675▕
+16 vendor frames
17 database/seeders/DatabaseSeeder.php:17
Illuminate\Support\Facades\Facade::__callStatic("unprepared")
+22 vendor frames
40 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
试着更改DB密码,用户名,
都不能解决问题.
这是什么问题呢?