-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLSTATE[HY000] [2002] Connection refused when php artisan config:cache #33
Comments
local.ERROR: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = clp and table_name = admin_config and table_type = 'BASE TABLE') {"exception":"[object] (Illuminate\Database\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = clp and table_name = admin_config and table_type = 'BASE TABLE') at /Users/derek/clp-cms_git/vendor/laravel/framework/src/Illuminate/Database/Connection.php:670) [previous exception] [object] (Doctrine\DBAL\Driver\PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /Users/derek/clp-cms_git/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31) [previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /Users/derek/clp-cms_git/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27) |
When running command:
php artisan config:cache;
Error:
Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = clp and table_name = admin_config and table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:670
666| // If an exception occurs when attempting to run a query, we'll format the error
667| // message to include the bindings with SQL, which will make this exception a
668| // lot more helpful to the developer instead of just the database's errors.
669| catch (Exception $e) {
1 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(App\Providers\AppServiceProvider))
3 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(App\Providers\AppServiceProvider))
The text was updated successfully, but these errors were encountered: