スポンサーサイト
一定期間更新がないため広告を表示しています
laravelで環境構築してて
# php artisan migrate でエラーがでてはまる
原因はユーザ作成してなかったから
そりゃユーザなかったらそうだよね
phpmyadminで、ユーザ作成したら解決したよ
以下エラーログ
[Note] Access denied for user 'test'@'xxx.xxx.xxx.xxx' (using password: YES)
# php artisan migrate
Illuminate¥Database¥QueryException
SQLSTATE[HY000] [1045] Access denied for user 'test'@'xxx.xxx.xxx.xxx' (using password: YES)
(SQL: select* from information_
schema.tables where table_schema = test and table_name = migrations and table_type = 'BASE TABLE')
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))