PDO_SQLITE driver not present.. what to do?

前端 未结 5 452
忘掉有多难
忘掉有多难 2020-12-14 14:57

I see everywhere (including on the official docs) that the PDO_SQLITE driver is/should be included by default in PHP.

However, when I look at my

相关标签:
5条回答
  • 2020-12-14 15:30

    For Windows users:

    removed comment (;) from php.ini

    extension=php_pdo_sqlite.dll
    
    extension=php_sqlite3.dll
    
    0 讨论(0)
  • 2020-12-14 15:31

    In my case i was using php 7.2 in Ubuntu. I had to run following command,

    sudo apt install php7.2-sqlite
    
    0 讨论(0)
  • 2020-12-14 15:36

    For PHP 7.0 and greater:

    sudo apt-get install php-sqlite3
    
    0 讨论(0)
  • 2020-12-14 15:40

    For Windows 10 - 64bits, version PHP 7.2 It's necessary remove only ( ; ) Before ;extension=pdo_sqlite ;extension=sqlite3

    After extension=pdo_sqlite extension=sqlite3

    Restart the server and already.

    0 讨论(0)
  • 2020-12-14 15:43

    did you try sudo apt-get install php5-sqlite?

    0 讨论(0)
提交回复
热议问题