PDA

View Full Version : Error 1046 -- Fresh Install


Archaic Sage
Sun 20th Aug '06, 10:49am
Hi,
I'm trying to install VB onto my site at the moment, and I'm getting Error 1046, which is claiming that I've either got my details incorrect, or the server is not configured correctly. I know that my config.php file is correct, as it's using the same database as my CMS. I've contacted my host, HostGator, and they are stating that there are no mySQL or Database errors at the moment.

Below are the areas which I assume are the important details in the config file to get correct.

Any idea what's going wrong?

// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config['Database']['site'] = 'rau7u_site';

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'rau7u_site';
$config['MasterServer']['password'] = 'My Password';

Steve Machol
Sun 20th Aug '06, 2:14pm
What is the exact and complete error?

Archaic Sage
Sun 20th Aug '06, 2:16pm
It's just the standard Step 2 Error:
Step 2) Connect to the database Attempting to attach to database
Connect failed: unexpected error from the database.
Error number: 1046
Error description: No database selected
Please ensure that the database and server is correctly configured and try again.

I really have no idea what I'm doing wrong either, it's not like I'm new to installing forums in general, just VB.

Steve Machol
Sun 20th Aug '06, 2:17pm
Error description: No database selected

The info in your config.php file is wrong.

Archaic Sage
Sun 20th Aug '06, 2:58pm
Like I've already said, I know that it's correct. Which is the trouble. It's the same database as I'm using for my Mambo CMS, and I'm planning on using the addon VBridge for it, so I need to have them in the same database. The database username and password are active and working in Mambo, so I've pulled it across to the VBulletin config file. Which is why I can't understand why it's not working.

Steve Machol
Sun 20th Aug '06, 3:09pm
Honestly I know of no other reason for this error:

Error description: No database selected

And I've been doing this for over 4 years now. I don't know what else to recommend but I'll ask if anyone else on the support staff knows something I don't.

Colin F
Sun 20th Aug '06, 4:17pm
The problem is that you've edited this line:

$config['Database']['site'] = 'rau7u_site';

Change that to:

$config['Database']['dbname'] = 'rau7u_site';

Archaic Sage
Sun 20th Aug '06, 4:31pm
Such a simple error.

Thanks for all of your help, you've been awesome :D.

Steve Machol
Sun 20th Aug '06, 4:36pm
We need to somehow find a way to make it clear that only the right side of the = sign should be edited.

Archaic Sage
Sun 20th Aug '06, 6:39pm
In big capital letters just above each editing point? I know that most people don't even read the top "disclaimer" part.