Page 1 of 1

Fatal error: Uncaught exception 'PDOException'

Posted: Mon Dec 24, 2018 3:13 pm
by redmine
Hi all,
I've installed NuBuilder-4 on XAMPP for Windows, But doesn't work, error:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'neo'@'localhost' (using password: NO)' in C:\xampp\htdocs\nuBuilder4\nudatabase.php:11 Stack trace: #0 C:\xampp\htdocs\nuBuilder4\nudatabase.php(11): PDO->__construct('mysql:host=127....', 'neo', '', Array) #1 C:\xampp\htdocs\nuBuilder4\nuchoosesetup.php(21): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\nuBuilder4\index.php(3): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\nuBuilder4\nudatabase.php on line 11

File nuconfig:
$nuConfigDBHost = "localhost";
$nuConfigDBName = "nubuilder4";
$nuConfigDBUser = "neo";
$nuConfigDBPassword = "*********";
$nuConfigDBGlobeadminUsername = "admin"; //-- globeadmin username
$nuConfigDBGlobeadminPassword = "************"; //-- globeadmin password
$nuConfigTitle = "NuBuilder-4";
$nuConfigIsDemo = false;
$nuConfigTimeOut = 1440;

File nudatabase.php, row error:
$nuDB = new PDO("mysql:host=$DBHost;dbname=$DBName;charset=$DBCharset", $DBUser, $DBPassword, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES $DBCharset"));
$nuDB->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

Any solution?

Re: Fatal error: Uncaught exception 'PDOException'

Posted: Tue Dec 25, 2018 2:35 pm
by kev1n
That error message usually means that either the password you are using doesn't match what MySQL thinks the password should be for the user you're connecting as, or a matching MySQL user doesn't exist (hasn't been created).

https://stackoverflow.com/a/31154458

Re: Fatal error: Uncaught exception 'PDOException'

Posted: Tue Dec 25, 2018 6:17 pm
by redmine
Hi kevv1n,
Unfortunately (username and password) they are correct.
I suspect this is more complex than it first appears:

Maybe: https://stackoverflow.com/questions/238 ... th-message

Re: Fatal error: Uncaught exception 'PDOException'

Posted: Fri Dec 28, 2018 4:52 pm
by kev1n
redmine wrote:Hi kevv1n,
Unfortunately (username and password) they are correct.
I suspect this is more complex than it first appears:

Maybe: https://stackoverflow.com/questions/238 ... th-message
Good idea, try connecting with a slimmed-down PHP script.

Re: Fatal error: Uncaught exception 'PDOException'

Posted: Fri Feb 15, 2019 6:18 pm
by ong19
Hi,

just had the same problem. I removed the cookies (3 of those) from the browser cache. Refreshed - everything worked, Maybe try a private window - this has brought me on track.

Olaf