panichd icon indicating copy to clipboard operation
panichd copied to clipboard

Install error laravel 8.x

Open NeonOdyssey opened this issue 3 years ago • 2 comments

I am attempting to install with laravel 8.x and I am running into this error ...

Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Illuminate\Database\QueryException

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

  at 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▕

  1   [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()

      +2 vendor frames
  4   [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

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

NeonOdyssey avatar Mar 31 '21 12:03 NeonOdyssey

Hello @NeonOdyssey,

This error sounds like an incomplete Laravel setup. You have to review your database configuration. If you still have not figured out what is wrong in it, you should review Laravel installation steps.

xaviqv avatar Apr 07 '21 20:04 xaviqv

This error sounds like an incomplete Laravel setup. You have to review your database configuration. If you still have not figured out what is wrong in it, you should review Laravel installation steps.

I am aware that this may seem like a laravel setup issue. However, I can confirm that my laravel setup has no issues. I have a fully functional web application with user accounts and roles with no issues.

I have tried to install this package on a fresh laravel 8 application, however, this returns the same error.

Here is the database connection in the .env file:

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=pp_db
DB_USERNAME=sail
DB_PASSWORD=password

NeonOdyssey avatar Apr 14 '21 16:04 NeonOdyssey