Log in

View Full Version : Installation Problem


Avi_Goldstein
07-20-2005, 09:16 PM
When I run the install.php I get the following problem:

Step 2) Connect to the database

Attempting to attach to database

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/avi/public_html/forums/includes/db_mysql.php on line 140

The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the 'includes/config.php' file.

Now, I have checked the config.php and it DOES contain the correct host name, username and password for MySQL database. Moreover, I am able to Create/Alter tables manually on my server with these username/Password.

What is wrong? What should I do?

Thank You,

Avi

Marco van Herwaarden
07-21-2005, 03:19 AM
This is a question that usually belongs to vb.com but i will try to answer anyway.

To start with, leave the hostname set to 'localhost'.
Set the correct databasename.

Make sure you are using the correct MySQL username and password, and that this user has enough permissions on this database.

If you have shell access (SSH/Telnet) you can try connecting to the database from the commandline with 'mysql' using the same information first.