找不到Laravel MySql驱动程序

时间:2015-10-26 09:43:17

标签: php mysql laravel mariadb

我正在使用在Centos 7 / Apache上运行的Laravel 5.0。每当我尝试访问我的网站时,都会收到以下错误:

InvalidArgumentException in compiled.php line 11270:
Driver [mysql] not supported.

in Manager.php line 92
at Manager->createDriver('mysql') in Manager.php line 62
at Manager->driver() in StartSession.php line 116
at StartSession->getSession(object(Request)) in StartSession.php line 101
at StartSession->startSession(object(Request)) in StartSession.php line 56
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 111
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 55

我有一个MariaDB后端,在今天之前工作正常。但是,今天它出错了。我没有对数据库配置进行任何更改。我已经确认安装了php-mysql以及MySql的PDO驱动程序。有谁知道为什么会收到这个错误?

0 个答案:

没有答案