Fatal error: Uncaught exception 'PDOException'

Questions related to using nuBuilder Forte.

Fatal error: Uncaught exception 'PDOException'

Postby redmine » Mon Dec 24, 2018 11:43 pm

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?
redmine
 
Posts: 2
Joined: Mon Dec 24, 2018 11:36 pm

Re: Fatal error: Uncaught exception 'PDOException'

Postby kev1n » Tue Dec 25, 2018 11:05 pm

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
kev1n
 
Posts: 364
Joined: Mon Oct 15, 2018 2:13 am

Re: Fatal error: Uncaught exception 'PDOException'

Postby redmine » Wed Dec 26, 2018 2:47 am

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
redmine
 
Posts: 2
Joined: Mon Dec 24, 2018 11:36 pm

Re: Fatal error: Uncaught exception 'PDOException'

Postby kev1n » Sat Dec 29, 2018 1:22 am

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.
kev1n
 
Posts: 364
Joined: Mon Oct 15, 2018 2:13 am

Re: Fatal error: Uncaught exception 'PDOException'

Postby ong19 » Sat Feb 16, 2019 2:48 am

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 *
ong19
 
Posts: 16
Joined: Sat Feb 16, 2019 1:43 am


Return to General