Ошибка при выполнении команды миграции на Laravel V-7 & PHP V-7.3 - PullRequest
0 голосов
/ 09 марта 2020
   Illuminate\Database\QueryException

  could not find driver (SQL: select * from information_schema.tables where table_schema = ecommerce and table_name = migrations and table_type = 'BASE TABLE')

  at F:\xampp\htdocs\ecommerce\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669
    665|         // If an exception occurs when attempting to run a query, we'll format the error
    666|         // message to include the bindings with SQL, which will make this exception a
    667|         // lot more helpful to the developer instead of just the database's errors.
    668|         catch (Exception $e) {
  > 669|             throw new QueryException(
    670|                 $query, $this->prepareBindings($bindings), $e
    671|             );
    672|         }
    673|

  1   F:\xampp\htdocs\ecommerce\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
      PDOException::("could not find driver")

  2   F:\xampp\htdocs\ecommerce\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
      PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=ecommerce", "root", "", [])

Я попытался заменить "; extension = pdo_ mysql" на "extension = pdo_ mysql" в php .ini внутри PHP папки.

...