Access denied for user...

Status
Not open for further replies.

mudme

New Member
Messages
14
Reaction score
0
Points
0
I have a problem.
I'm not an expert on the whole installing thing but, I managed to get to the auto-installer for my forum.

I've run the installer for about many times and changing the text in the input fields but an error keeps appearing.
Can someone help me?

This is the error:
In file db_mysql.php on line 87:
E_WARNING - mysql_connect() [function.mysql-connect]: Access denied for user -filtered- (using password: YES)
 

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
check that you have your cPanel username as a prefix i.e.

If you wanted user 'example'
Then the username is 'cPanelUserName_example'

Also check that you assigned the user to the database in cPanel.

Don't forget to check the password ;)
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
I think it's the problem that lambada says.
You have to create a user for the mysql database, and check you put it correctly in the settings.php or config.php.
If you create a database called forum, the database name will be surf4web_forum.
If you create a user called user, the name will be surf4web_user.

I'm telling "surf4web" because it's your cPanel username, each person has to put their own cPanel user before.
 

mudme

New Member
Messages
14
Reaction score
0
Points
0
i've try it.. and it still cant work..

Database configuration
Server type * : MySQL3.x/4.0 or MySQL4.1/5.x
Server host * :
Username * :
Password :
DB name * :
Table prefix :
 

Micro

Retired staff <i> (11-12-2008)</I>
Messages
1,301
Reaction score
0
Points
36
On the mysql page (cPanel), there is an option to add users. Select your database, select the user, check the "All" box and click Add.
 

nol888

New Member
Messages
292
Reaction score
0
Points
0
And you need to allow the user you created access to the database

Edit: Oops, thats what Micro just said.
 
Last edited:
Status
Not open for further replies.
Top