Laravel: PDOException: could not find driver

前端 未结 21 2472
野趣味
野趣味 2020-11-27 05:06

I am developing a website on a server I only have access to MySQL and FTP, so all commands I run are through the b374k php shell . I am experiencing a Laravel problem with S

21条回答
  •  日久生厌
    2020-11-27 05:54

    You are probably missing sqlite or the specific DB driver you are trying to migrate.

    Install the DB driver and you'd be fine. You don't necessarily need to edit your php.ini file (it's one way to fix it too though).

    For sqlite do --> sudo apt-get install php-sqlite3 Then php artisan migrate

    NB: I assume you have PHP and MySql already installed

提交回复
热议问题