If you can, run :
composer update
composer require doctrine/dbal
You might also need to uncomment the following in your php.ini file.
;extension=pdo_mysql.so
Remove the ; to uncomment.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hello everyone i need some help when i try to php artisan migrate then error like at /opt/lampp/htdocs/blo3/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: 669: return $result;
Exception trace:
1 Doctrine\DBAL\Driver\PDOException::("could not find driver") /opt/lampp/htdocs/blo3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php : 31
2 PDOException::("could not find driver") /opt/lampp/htdocs/blo3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php : 27
Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = blog and table_name = migrations)
Please or to participate in this conversation.