php artisan migrate でエラーがでてはまる → 解決済 Laravel
<p>laravelで環境構築してて
# php artisan migrate でエラーがでてはまる
原因はユーザ作成してなかったから
そりゃユーザなかったらそうだよね
phpmyadminで、ユーザ作成したら解決したよ
以下エラーログ
[Note] Access denied for user 'test'@'xxx.xxx.xxx.xxx' (using password: YES)
</p><p> </p><p># php artisan migrate
Illuminate¥Database¥QueryException</p><p> SQLSTATE[HY000] [1045] Access denied for user 'test'@'xxx.xxx.xxx.xxx' (using password: YES)</p><p> (SQL: select* from information_</p><p>schema.tables where table_schema = test and table_name = migrations and table_type = 'BASE TABLE')</p><p>
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:669
665| // If an exception occurs when attempting to run a query we'll format the error
666| // message to include the bindings with SQL which will make this exception a
667| // lot more helpful to the developer instead of just the database's errors.
668| catch (Exception $e) {
> 669| throw new QueryException(
670| $query $this->prepareBindings($bindings) $e
671| );
672| }
673|
+34 vendor frames
35 artisan:37
Illuminate¥Foundation¥Console¥Kernel::handle(Object(Symfon11y¥Component¥Console¥Input¥ArgvInput) Object(Symfony¥Component¥Console¥Output¥ConsoleOutput))</p>