我已經在我的MAC中安裝了mssql驅動程序,用於php7.1PDOException:找不到驅動程序
我也檢查了我的mssql連接。
TDSVER=8.0 tsql -H yyy.yyy.yy.yy -U xx -D testphp -p 1433 -P xxx
現在,當我嘗試
php artisan migrate:install
我獲得以下exception.Why我仍然得到這個錯誤?[1]我已經安裝了驅動程序和所有
brew install msodbcsql
brew install mssql-tools
brew install autoconf
sudo pear config-set php_ini `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` system
sudo pecl install sqlsrv
sudo pecl install pdo_sqlsrv
{1]
[Illuminate\Database\QueryException]
could not find driver (SQL: create table "migrations" ("id" int identity pr
imary key not null, "migration" nvarchar(191) not null, "batch" int not nul
l))
[PDOException]
could not find driver
當我找到pdo_mssql dri我看到以下條目。
/usr/include/php/ext/pdo/php_pdo_driver.h
/usr/local/Cellar/php71/7.1.7_19/lib/php/.registry/.channel.pecl.php.net/pdo_sqlsrv.reg
/usr/local/Cellar/php71/7.1.7_19/lib/php/doc/pdo_sqlsrv