redbastie / larawire

Laravel + Livewire + Bootstrap auth UI & CRUD scaffolding.
21 stars 4 forks source link

Illuminate Database QueryException #3

Closed giabit closed 3 years ago

giabit commented 3 years ago

Hello, I'm trying to create a new app with Larawire, but when I run the php artisan make:auth command I have the following error:

 Illuminate\Database\QueryException

  could not find driver (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')

  at C:\xampp\htdocs\blog\vendor\laravel\framework\src\Illuminate\Database\Connection.php:678
    674▕         // If an exception occurs when attempting to run a query, we'll format the error
    675▕         // message to include the bindings with SQL, which will make this exception a
    676▕         // lot more helpful to the developer instead of just the database's errors.
    677▕         catch (Exception $e) {
  ➜ 678▕             throw new QueryException(
    679▕                 $query, $this->prepareBindings($bindings), $e
    680▕             );
    681▕         }
    682▕

If I try to install doctrine/dbal have another error:

$ composer require doctrine/dbal
Using version ^3.0 for doctrine/dbal
./composer.json has been updated
Running composer update doctrine/dbal
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - redbastie/larawire is locked to version 1.6.1 and an update of this package was not requested.
    - redbastie/larawire 1.6.1 requires doctrine/dbal ^2.0 -> found doctrine/dbal[2.1.5, ..., 2.12.x-dev] but it conflicts with your root composer.json require (^3.0).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

I've deployed the app with XAMPP, PHP8 and MySQL 8.

Thanks for your contribution!

redbastie commented 3 years ago

I just updated dbal to use version 3.0

Please run composer update and then try again, or start from scratch with a new laravel project.