0
我正在开发与Microsoft SQL服务器交谈的Laravel应用程序。一切正常,但是当我运行composer update
更新我收到以下错误包:如何解决PDOException?
[PDOException]
could not find driver
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output:
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--] [<packages>]...
奇怪的是,sqlserv
司机在我database.php中的文件设置正常工作;我的流浪盒安装并配置了正确的驱动程序,据我所知,与数据库连接有关的所有信息都按预期工作。
我可以采取哪些措施来缩小此错误的来源?
更新:
我曾提到我的SQL连接,因为据我所知,在服务器上正确配置:它适用于查询,更新等,但是为了以防万一我错过了一些东西在这里完整步骤我把安装SQL驱动程序:
sudo apt-get install php5-mssql php5-sybase
sudo php5enmod mssql
sudo nano /etc/freetds/freetds.conf
:[global] tds version = 8.0 client charset = UTF-8
sudo service apache2 restart
几篇关于同一个问题的帖子,可能是你的服务器上安装了'sqlserv'安装的问题:https://github.com/taviroquai/mapigniter2/issues/16 http://stackoverflow.com/questions/ 18213907 /如何使用的-SQL服务器连接功能于laravel – Jeff