Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

database not configured on install

Locked
azcycles
Posts: 4
Joined: Tue Jan 27, 2015 3:27 pm

database not configured on install

Unread post by azcycles »

I set up a "sample" database and added a user "brian" with full permissions.

following is what I entered into my config.php file
<?php

$nuConfigDBHost = "127.0.0.1";
$nuConfigDBName = "sample";
$nuConfigDBUser = "brian";
$nuConfigDBPassword = "password";
$nuConfigDBGlobeadminPassword = "password"; //-- globeadmin password
$nuConfigtitle = "site_c";
//$nuConfigSafeMode = true;
//$nuConfigSafePHP = array('52c0da99b95c264','530a8f8e78111c4','nudebug','nuformsandsubforms','nuformwizard','nuimage','nuobject','nuobject','nureport','nusubformwizard','nuuser');

?>

I have tried changing the dbhost to the ip address of the website as shown in Cpanel. I have tried changing the dbuser to root, with password of root. among several other attempts. all result in the
It appears your database server is not configured,
please enter a mysql database name, user name
and password into your config.php file.

Have I missed a step or am I misunderstanding the steps of adding a database?
azcycles
Posts: 4
Joined: Tue Jan 27, 2015 3:27 pm

Re: database not configured on install

Unread post by azcycles »

I changed the dbhost setting to localhost and it worked.

Now I need to get past the login screen. The username and password that I had set don't work for some reason.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: database not configured on install

Unread post by admin »

azcycles,

Try

Code: Select all

    $nuConfigDBUser                 = "root";
    $nuConfigDBPassword             = "root";
Steven
azcycles
Posts: 4
Joined: Tue Jan 27, 2015 3:27 pm

Re: database not configured on install

Unread post by azcycles »

when I enter those in config.php I get the original message
It appears your database server is not configured,
please enter a mysql database name, user name
and password into your config.php file.
So I tried to go into MySQL and add root as a user and password and it won't let me because the password needs to be 5 characters long.
azcycles
Posts: 4
Joined: Tue Jan 27, 2015 3:27 pm

Re: database not configured on install

Unread post by azcycles »

I just logged in as globeadmin and now it worked. Sorry, I didn't catch that in the install instructions.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: database not configured on install

Unread post by admin »

.
Locked