我想将表从laravel应用程序迁移到xampp。为此,我正在使用命令“ php artisan migration”,但出现错误:
1 C:\xampp\htdocs\student\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("could not find driver")
2 C:\xampp\htdocs\student\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct("mysql:host=127.0.0.1;port=3307;dbname=student", "root", "", [])
我正在使用Windows 10
.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3307
DB_DATABASE=student
DB_USERNAME=root
DB_PASSWORD=
在下面,我将附加我的php.ini文件。我想我添加或取消注释了必填行
php.ini
;
extension=bz2
extension=curl
;extension=ffi
;extension=ftp
extension=fileinfo
extension=gd2
extension=gettext
;extension=gmp
;extension=intl
;extension=imap
;extension=ldap
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=odbc
;extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
extension=pdo_pgsql
extension=pdo_sqlite
extension=php_pdo_mysql.dll
;extension=pgsql
extension=php_mysql.dll
extension=php_mysqli.dll
在执行phpinfo()之后,我会变得像这样: