PDOException: SQLSTATE[HY000] [1049] Unknown database code example
Example 1: SQLSTATE[HY000] [1049] Unknown database 'laravel' (SQL: select * from `posts`)"
php artisan cache:clear
Example 2: SQLSTATE[HY000] [1049] Unknown database
php artisan cache:clear
php artisan migrate:install