PDA

View Full Version : Cannot connect to database (vB)


Keiru Silver
02-23-2002, 02:17 AM
I'm trying to install vBulletin v2.2.2, and on the third screen of the install script, I get an error. I know that the scripts are right, but I think my settings in config.php are wrong.

I registered the database 'aeterna' and the username 'aeterna', but it doesn't work.

Attempting to attach to database...


Warning: Lost connection to MySQL server during query in /home/runeaet/public_html/forums/admin/db_mysql.php on line 40

Warning: MySQL Connection Failed: Lost connection to MySQL server during query in /home/runeaet/public_html/forums/admin/db_mysql.php on line 40

Warning: Supplied argument is not a valid MySQL-Link resource in /home/runeaet/public_html/forums/admin/db_mysql.php on line 47

The database has failed to connect because you do not have permission to connect to the server. Please go back to the last step and ensure that you have entered all your login details correctly.

sanjiv
02-23-2002, 03:36 AM
make sure you set hte mysql host to: localhost
the database name would be: your-domain-name_db-name

For example my domain name is nanwani.net. I create a db called testing. My db name which i put into the config file would therefore be nanwani_db.

The same goes for the mysql username. If i create a user called test, i would set nanwani_test as the mysql username in the config file