Cannot setup database with a different name than nubuilder4
Posted: Sun Mar 14, 2021 9:00 am
When you install nubuilder, the database name has to be nubuilder4 even it's written you can change the name. I have created a database called nu, change in the nuconfig.php as following :
// Database Settings:
$nuConfigDBHost = "127.0.0.1"; //-- Database Host / IP
$nuConfigDBName = "nu"; //-- Database Name. You can change the name, if desired. The database must exist or must be created on your server.
$nuConfigDBUser = "root"; //-- Database User. Change the user, if desired. The user must exist or must be created.
$nuConfigDBPassword = ""; //-- Database Password. We recommend you to use any strong password.
// Administrator Login:
$nuConfigDBGlobeadminUsername = "globeadmin"; //-- globeadmin username. You can choose any username you like.
$nuConfigDBGlobeadminPassword = "nu"; //-- globeadmin password. Please choose a stronger password!
// Settings:
$nuConfigTitle = "nuBuilder 4"; //-- nuBuilder Title
$nuConfigTimeOut = 1440; //-- Session Timeout. Default: 1440 (24h)
$nuConfigIsDemo = false; //-- Demo mode. Saving not permitted.
And it doesn't work. You have the following message :
Connection failed: SQLSTATE[HY000] [1049] Base 'nubuilder4' unknown
// Database Settings:
$nuConfigDBHost = "127.0.0.1"; //-- Database Host / IP
$nuConfigDBName = "nu"; //-- Database Name. You can change the name, if desired. The database must exist or must be created on your server.
$nuConfigDBUser = "root"; //-- Database User. Change the user, if desired. The user must exist or must be created.
$nuConfigDBPassword = ""; //-- Database Password. We recommend you to use any strong password.
// Administrator Login:
$nuConfigDBGlobeadminUsername = "globeadmin"; //-- globeadmin username. You can choose any username you like.
$nuConfigDBGlobeadminPassword = "nu"; //-- globeadmin password. Please choose a stronger password!
// Settings:
$nuConfigTitle = "nuBuilder 4"; //-- nuBuilder Title
$nuConfigTimeOut = 1440; //-- Session Timeout. Default: 1440 (24h)
$nuConfigIsDemo = false; //-- Demo mode. Saving not permitted.
And it doesn't work. You have the following message :
Connection failed: SQLSTATE[HY000] [1049] Base 'nubuilder4' unknown