前提・実現したいこと
前提:Laravel6.0を使って練習用のアプリを制作したしました。
また、現在アプリを開こうとすると、419 Page Expiredと表示されています。
実現したいこと:正常にアプリを動作させたい
発生している問題・エラーメッセージ
php artisan migrate
コマンドを打つと次のようなエラーメッセージが表示されます。
SQL
1 Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations and table_type = 'BASE TABLE') 2 3 at /Users/yoshizawatakamasa/working/stories/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669 4 665| // If an exception occurs when attempting to run a query, we'll format the error 5 666| // message to include the bindings with SQL, which will make this exception a 6 667| // lot more helpful to the developer instead of just the database's errors. 7 668| catch (Exception $e) { 8 > 669| throw new QueryException( 9 670| $query, $this->prepareBindings($bindings), $e 10 671| ); 11 672| } 12 673| 13 14 Exception trace: 15 16 1 Doctrine\DBAL\Driver\PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)") 17 /Users/yoshizawatakamasa/working/stories/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31 18 19 2 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)") 20 /Users/yoshizawatakamasa/working/stories/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 21 22 Please use the argument -v to see more details.
該当のソースコード
.env
php
1APP_NAME=Laravel 2APP_ENV=local 3APP_KEY=base64:/6+R0tvwar2oqB9J4Bdo4c7FW82fBrMHuTvTRTRr940= 4APP_DEBUG=true 5APP_URL=http://localhost 6 7LOG_CHANNEL=stack 8 9DB_CONNECTION=mysql 10DB_HOST=127.0.0.1 11DB_PORT=3306 12DB_DATABASE=homestead 13DB_USERNAME=homestead 14DB_PASSWORD=secret 15 16BROADCAST_DRIVER=log 17CACHE_DRIVER=file 18QUEUE_CONNECTION=sync 19SESSION_DRIVER=file 20SESSION_LIFETIME=120 21 22REDIS_HOST=127.0.0.1 23REDIS_PASSWORD=null 24REDIS_PORT=6379 25 26MAIL_DRIVER=smtp 27MAIL_HOST=smtp.mailtrap.io 28MAIL_PORT=2525 29MAIL_USERNAME=null 30MAIL_PASSWORD=null 31MAIL_ENCRYPTION=null 32 33AWS_ACCESS_KEY_ID= 34AWS_SECRET_ACCESS_KEY= 35AWS_DEFAULT_REGION=us-east-1 36AWS_BUCKET= 37 38PUSHER_APP_ID= 39PUSHER_APP_KEY= 40PUSHER_APP_SECRET= 41PUSHER_APP_CLUSTER=mt1 42 43MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 44MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 45
Homestead.yaml
--- ip: "192.168.10.10" memory: 2048 cpus: 2 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/code to: /home/vagrant/code sites: - map: homestead.test to: /home/vagrant/code/public databases: - homestead features: - mariadb: false - ohmyzsh: false - webdriver: false # ports: # - send: 50000 # to: 5000 # - send: 7777 # to: 777 # protocol: udp
試したこと
主に上記の3つにサイトを参考に、修正を加えるなど致しましたが問題解決には至りませんでした。
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー