| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) | ||
|
Registered User
Fresh Surpasser
Joined in Aug 2004
5 posts
Gave thanks: 0
Thanked 0 times
|
MySQL Help
Hi guys, searched a little but couldn't find any direct answers, I am new to SQL and I am trying to set up a vBulletin Board, I have created the DB and user, added these to the config.php script but I get this error, what am I doing wrong?
Quote:
Quote:
|
||
|
|
|
|
|
#2 (permalink) |
|
Peaches!
Excelling Contributor
Joined in Jul 2003
Lives in Ottawa, Ontario, Canada
Hosted on Jose, Pass19
564 posts
Gave thanks: 0
Thanked 0 times
|
Did you add the user to that database? To do it if you haven't already, just go into cPanel then the MySQL Databases and find at the end of the list of databases two drop down menus, select the user you're useing and the database, then click Add User to Db.
Also, for the $servername, you only need localhost. |
|
|
|
|
|
#3 (permalink) | ||
|
Registered User
Fresh Surpasser
Joined in Aug 2004
5 posts
Gave thanks: 0
Thanked 0 times
|
Yes, I should have added that, the user was added and the Access Host is localhost, But I got that error, so know I am puzzled, does the upload folder have to be in the public_HTML directory or the root or where?
thanyou for your quick reply, much appreciated, Did you mean in the script or on the MySQL page Quote:
Quote:
Last edited by graphicart; August 29th, 2004 at 9:20 PM.. |
||
|
|
|
|
|
#4 (permalink) | |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
Quote:
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Aug 2004
5 posts
Gave thanks: 0
Thanked 0 times
|
Did that but still get this:
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/*******/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. Also the script staes this: This is the hostname or IP address of the database server. // It is in the format HOST:PORT. If no PORT is specified, 3306 is used. // If you are unsure of what to put here, leave it at the default value. |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Aug 2004
5 posts
Gave thanks: 0
Thanked 0 times
|
just wanted to thank you all for the help, although I'm guessing there must be some delay after you set up a MySQL Bd before you can access it because I tried one more time with the original settings I had and it worked
|
|
|
|