“运行”;“php artisan迁移”;在Ubuntu终端返回错误

“运行”;“php artisan迁移”;在Ubuntu终端返回错误,php,ubuntu-16.04,artisan-migrate,Php,Ubuntu 16.04,Artisan Migrate,我已经取消了这行的注释 Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = crosssolardevelopment and table_name = migrations) at /var/www/ProjectNAme/vendor/laravel/framework/src/I

我已经取消了这行的注释

   Illuminate\Database\QueryException  : could not find driver (SQL: select * from information_schema.tables where table_schema = crosssolardevelopment and table_name = migrations)

  at /var/www/ProjectNAme/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
    660|         // If an exception occurs when attempting to run a query, we'll format the error
    661|         // message to include the bindings with SQL, which will make this exception a
    662|         // lot more helpful to the developer instead of just the database's errors.
    663|         catch (Exception $e) {
  > 664|             throw new QueryException(
    665|                 $query, $this->prepareBindings($bindings), $e
    666|             );
    667|         }
    668|
在php.ini中,我们还重新启动了apache2

这是我的环境

extension=php_pdo_mysql.dll

我想知道为什么我仍然得到错误

也许你的PHP-CLI有一个单独的
PHP.ini
在哪里你需要激活扩展?至少在Debian上,它是分开的,尽管使用phpenmod将同时启用这两个功能。对不起,我不知道我是否有,我如何检查它@TobiasK.
php-i
包含该信息,请使用类似于
php-i | grep pdo
@TobiasK的内容。让我在候机楼检查一下,好吗back@TobiasK. 它也是未注释的,就像这样
;php公共模块的配置;优先级=10扩展=pdo.so
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:nWy9Nrplqo0EV74hQCODrkZW0A0Y7WabpdVHm3AD5Qo=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dbdevelopment
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"