Запуск "php artisan migrate" в терминале Ubuntu, возвращая ошибку - PullRequest
0 голосов
/ 02 сентября 2018
   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|

Я раскомментировал строку

extension=php_pdo_mysql.dll

в php.ini также перезапустили apache2

А это мой .env

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}"

Мне интересно, почему я все еще получаю ошибку

...