繁体   English   中英

如何解决在 laravel 中找不到驱动程序(SQL:select * from information_schema.tables where table_schema = my_app and table_name = settings)?

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

在 cmd php artisan serve其抛出错误

Connection.php 第 664 行:找不到驱动程序(SQL:select * from information_schema.tables where table_schema = my_app and table_name = settings)

如何解决?

似乎您的机器缺少扩展名,在这种情况下是 php-mysql 扩展名。

sudo apt-get install php7.0-mysql

安装扩展安装,它可以解决这个问题。 (您可能需要更改您当前的 php 版本以安装扩展匹配扩展版本php{your_php_version}-mysql并不总是 php7.0-mysql)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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