简体   繁体   中英

How to resolve 'could not find driver (SQL: select * from information_schema.tables where table_schema = my_app and table_name = settings) in laravel?

When running this command in cmd php artisan serve its throw error

Connection.php line 664: could not find driver (SQL: select * from information_schema.tables where table_schema = my_app and table_name = settings)

How to resolve?

Seem your machine missing extension, in this case is php-mysql extension. Run

sudo apt-get install php7.0-mysql

to install extension for install, it can fix this problem. ( You may need to change your current php version for install extension matching extension version php{your_php_version}-mysql not always php7.0-mysql)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM