:当试图迁移我的错误:当试图迁移我的错误“PDOException”
'PDOException' with message could not find driver
我的Ubuntu Linux环境。我配置了“sqlite”,如果我从命令行运行sqlite3,则会进入sqlite shell,因此它已正确安装,但Laravel未连接到数据库!
:当试图迁移我的错误:当试图迁移我的错误“PDOException”
'PDOException' with message could not find driver
我的Ubuntu Linux环境。我配置了“sqlite”,如果我从命令行运行sqlite3,则会进入sqlite shell,因此它已正确安装,但Laravel未连接到数据库!
pdo_slqite丢失。应该是安装通过...
sudo apt-get install php5-sqlite
我已经安装了此软件包。仍然无法在phpinfo()中获得pdo_sqlite。我无法理解这个问题 –
安装完成后,你重新启动了你的网络服务器吗? – user3158900
是的。 sudo服务apache2重新启动 –
如果您已经安装了php_pdo,但它没有显示在您的phpinfo(),您可能需要添加您/etc/php5/conf.d/ sqlite.ini文件。
它已经在那里@victor –
尝试输出'phpinfo()',并确保列出了pdo_sqlite。并且在PDO下,确保sqlite被列为启用。 – user3158900
感谢您的回复,它未列在phpinfo()中,我应该怎么做才能解决它/ –