我需要使用postgres安裝PHP 5.6。我跟着指示from here並做:php artisan migrate:PDOException找不到驅動程序
brew install php56 --without-mysql --without-apache --with-postgresql
brew install php56-pdo-pgsql
Php 5.6
和postgres
與使用PostgreSQL我的項目運行良好。
現在有Laravel
項目使用mysql
一些問題。在運行php artisan migrate
命令,它顯示:
[PDOException]
could not find driver
項目在瀏覽器工作正常,但。數據正在從MySQL表中完美獲取。 php -m
也不顯示mysql
。但phpinfo
確實顯示mysql
模塊。
可能是什麼問題?我需要重新安裝MySQL嗎?