Class "PDO" not found. Laravel 9 installation

Well, after 3 days of not finding the solution, I finally found the package needed for it to work:

php80-php-mysqlnd

So I went for:

sudo yum install php80-php-mysqlnd

To get:

Installed:
php80-php-mysqlnd.x86_64 0:8.0.30-1.el7.remi
Dependency Installed:
php80-php-pdo.x86_64 0:8.0.30-1.el7.remi

  • Previously went for a:

sudo yum install php80

To install php 8

This was my solution, not sure if leave the answer for someone else that could have the same issue, or if I should just delete the post.

1 Like