programing

Laravel MySql 드라이버를 찾을 수 없음

megabox 2023. 9. 1. 20:44
반응형

Laravel MySql 드라이버를 찾을 수 없음

저는 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 드라이버가 설치되어 있는 것을 확인했습니다.이 오류가 발생하는 이유를 아는 사람이 있습니까?

언급URL : https://stackoverflow.com/questions/33342594/laravel-mysql-driver-not-found

반응형