Report this

What is the reason for this report?

Fatal error: Uncaught exception 'PDOException'?

Posted on September 11, 2015
Nay

By Nay

Why my script php get that error of “PDO”?

I migrated hosting and my system in php crashed!

I upload the site files, imported the database and it is giving this message here, which shows my database user and password database !!! What do I do to fix this?

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user '********'@'localhost' (using password: YES)' in /var/sentora/hostdata/zadmin/public_html/meusite_com_br/painel/include/PDO/pdopaginator.inc.php:16 Stack trace: #0 /var/sentora/hostdata/zadmin/public_html/meusite_com_br_com_br/painel/include/PDO/pdopaginator.inc.php(16): PDO->__construct('mysql:host=loca...', '***********', '*****************', NULL) #1 /var/sentora/hostdata/zadmin/public_html/meusite_com_br/painel/include/class.connection.inc.php(30): PDOPaginator->__construct('mysql:host=loca...', '************', '************') #2 /var/sentora/hostdata/zadmin/public_html/meusite_com_br/painel/global.php(29): connection->connect() #3 /var/sentora/hostdata/zadmin/public_html/meusite_com_br/index.php(4): require('/var/sentora/ho...') #4 {main} thrown in /var/sentora/hostdata/zadmin/public_html/meusite_com_br/painel/include/PDO/pdopaginator.inc.php on line 16


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

PDO is one of the PHP extensions/libraries that are used to connect to databases. If you look at the error, it says:

Access denied for user '********'@'localhost' (using password: YES)

Make sure that the database credentials are correct.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.