![](/img/trans.png)
[英]Connection refused SQL: select * from information_schema.tables where table_schema = firstdb and table_name = migrations and table_type = 'BASE TABLE
[英]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.