Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

msbir's avatar
Level 1

could not find driver

I have uploaded and installed my Laravel app on a shared hosting. I was able to install composer, run artisan commands and the website does run (front/client files are showing)

my problem is when I try to run php artisan migrate I get this error -

In Connection.php line 664:

could not find driver (SQL: select * from information_schema.tables where table_schema = DBNAME and table_name = migrations)

In Connector.php line 67:

could not find driver

  • pdo_mysql extension is installed on the server.
0 likes
3 replies
Cronix's avatar

The pdo_mysql extension might be installed, but is it enabled? It needs to be enabled in both the web version and cli version of php.

msbir's avatar
Level 1

Thank!

So I tried what you suggested and it didn't work. I read online and it seems that the problem is that the application was upgraded to PHP 7.0 and the pdo_mysql has deprecated.

Does it make sense?

Please or to participate in this conversation.