Randy_Johnson
3 months ago
646
3
General

Doctrine\DBAL\Driver\PDOException

Posted 3 months ago by Randy_Johnson

I keep running into this problem and I have followed all instructions to fix it but it doesn't seem to be working.

I am running Linux Mint and I have run composer update etc with the message of that everything is up to date.

My composer.json also represents that it is there.

"require": { "php": "^7.1.3", "doctrine/dbal": "^2.9", "fideloper/proxy": "^4.0", "laravel/framework": "5.8.*", "laravel/tinker": "^1.0" },

Please please, I am actually at the stage where I am going to uninstall Linux and reinstall windows.

Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = ecommerce and table_name = migrations and table_type = 'BASE TABLE')

at /opt/lampp/htdocs/laravel/ecommerce/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 660| // If an exception occurs when attempting to run a query, we'll format the error 661| // message to include the bindings with SQL, which will make this exception a 662| // lot more helpful to the developer instead of just the database's errors. 663| catch (Exception $e) {

664| throw new QueryException( 665| $query, $this->prepareBindings($bindings), $e 666| ); 667| } 668|

Exception trace:

1 Doctrine\DBAL\Driver\PDOException::("SQLSTATE[HY000] [2002] No such file or directory") /opt/lampp/htdocs/laravel/ecommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31

2 PDOException::("SQLSTATE[HY000] [2002] No such file or directory") /opt/lampp/htdocs/laravel/ecommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27

Please use the argument -v to see more details.

Please sign in or create an account to participate in this conversation.