I have a fresh install of MAMP, which includes MySQL 5.7.26 and PHP 7.2.1
I've downloaded and installed the nuBuilder from the main site, unzipped and copied the folder to my htdocs directory and named it "nubuilder4".
I've created the database (nubuilder4) and modified the root user on localhost to have no password.
When I open localhost/nubuilder4/index.php I get a blank screen, and the following error message in the php_error.log:
Code: Select all
[28-Aug-2020 14:05:59 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'nubuilder4' in /Applications/MAMP/htdocs/nubuilder4/nudatabase.php:12
Stack trace:
#0 /Applications/MAMP/htdocs/nubuilder4/nudatabase.php(12): PDO->__construct('mysql:host=127....', 'root', '', Array)
#1 /Applications/MAMP/htdocs/nubuilder4/nuchoosesetup.php(21): require_once('/Applications/M...')
#2 /Applications/MAMP/htdocs/nubuilder4/index.php(3): require_once('/Applications/M...')
#3 {main}
thrown in /Applications/MAMP/htdocs/nubuilder4/nudatabase.php on line 12
Code: Select all
<?php
$nuConfigDBHost = "127.0.0.1";
$nuConfigDBName = "nubuilder4";
$nuConfigDBUser = "root";
$nuConfigDBPassword = "";
$nuConfigDBGlobeadminUsername = "globeadmin"; //-- globeadmin username
$nuConfigDBGlobeadminPassword = "nu"; //-- globeadmin password
$nuConfigTitle = "nuBuilder 4";
$nuConfigIsDemo = false;
$nuConfigTimeOut = 1440;
Any help is MUCH appreciated!