Solve this error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[42S02]:

Do you get this error Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: when you trying to launch your website? This errors mean that the database table not exists.

To solve this error, you must only create the table in your database.

In this way you will solve this error!

If you get this error: Fatal error: Uncaught exception 'Doctrine\DBAL\DBALException' with message 'The given 'driver' mysql is unknown, Doctrine currently supports only the following drivers: pdo_mysql, pdo_sqlite, pdo_pgsql, pdo_oci, oci8, ibm_db2, pdo_sqlsrv, mysqli, drizzle_pdo_mysql, sqlanywhere, sqlsrv' in Symfony, open your parameters.yml file and ensure that you have:

database_driver: pdo_mysql

Leave a Comment