PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, February 10, 2022

[FIXED] Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found

 February 10, 2022     dbal, laravel, laravel-5     No comments   

Issue

I am learning Laravel 5 and ran into an error when renaming a column in a table.

Created a migration:
public function up()
    {
        Schema::table('messages', function (Blueprint $table) {
            $table->renameColumn('age', 'agee');
        });
    }

I send a command for migration and I get an error:

In MySqlConnection.php line 65:

  Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found

Tried reinstalling in this way:

  1. deleted record "doctrine/dbal": "^3.1", from composer.json file
  2. typed in the console: composer update
  3. typed in the console: composer require doctrine/dbal

The package was reinstalled, but the error persisted. How to fix?


Solution

your problem because your doctirne/dbal: v3 , try to downgrade to v2 , like this :- doctrine/dbal": "^2.12" this issue related with your problem :- https://github.com/doctrine/dbal/issues/4439



Answered By - Mohamed Ahmed
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing