Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Fatal error: Uncaught exception 'PDOException'

Questions related to using nuBuilder Forte.
Post Reply
redmine
Posts: 2
Joined: Mon Dec 24, 2018 3:06 pm

Fatal error: Uncaught exception 'PDOException'

Unread post 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?
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Fatal error: Uncaught exception 'PDOException'

Unread post 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
redmine
Posts: 2
Joined: Mon Dec 24, 2018 3:06 pm

Re: Fatal error: Uncaught exception 'PDOException'

Unread post 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
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Fatal error: Uncaught exception 'PDOException'

Unread post 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.
ong19
Posts: 16
Joined: Fri Feb 15, 2019 5:13 pm

Re: Fatal error: Uncaught exception 'PDOException'

Unread post 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
* Database development *
https://datenbank-projekt.de *
Post Reply