- Uncaught Exception: DB Error: Access denied for user ” (using password: YES)
= Check credentials
::class is only available from PHP 5.5 onward, So updating php version of the SERVER will solve the problem.
First check php version of your server with command line.
Note that phpinfo() may give different version that with the php -v