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

Dev0ps's avatar

migration problem in digitalocean

i develop my app in windows and now deploy on ubuntu

on migration, i got the error


In Connection.php line 664:

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


In Connector.php line 67:

  could not find driver


please help

0 likes
3 replies
ArturHanusek's avatar

Are you using MSSQL ? Went trough the problem of connecting PHP to mssql and it was nightmare. Finally got it up and running on php7.1 and sybase driver

sudo apt-get update sudo apt-get install -y php7.1-sybase sudo reboot

Dev0ps's avatar

i am using mysql

PHP 7.2.6-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jun 11 2018 14:59:25TS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.6-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 2018, by Zend Technologies

Yorki's avatar
Yorki
Best Answer
Level 11

Do you have mysql installed on your server, also is mysql extension for php installed and enabled?

1 like

Please or to participate in this conversation.