SMF can't connect to the database

Status
Not open for further replies.

seph32

New Member
Messages
8
Reaction score
0
Points
0
Hello, I tried installing SMF forums, but it says it can't connect to the database.

Cannot connect to the MySQL database server with the supplied data.

If you are not sure about what to type in, please contact your host.

Access denied for user 'devon32_forums'@'localhost' (using password: YES)

My website url: http://elixer.elementfx.com
DB name: devon32_forums
User: devon32_elixer

Thanks in advance.
 

Scott

New Member
Messages
2,093
Reaction score
0
Points
0
Can you confirm that you have added permissions for the user on the database? This can be done inside cPanel.
 

seph32

New Member
Messages
8
Reaction score
0
Points
0
I have set premissions everything been trying to make it work for a good 30min then gave up. Any clue why I can't connect to database I think I set up everything right.

This is what's in my settings.php

########## Database Info ##########
$db_server = 'localhost';
$db_name = 'devon32_forums';
$db_user = 'devon32_elixer';
$db_passwd = 'xxxxxx';
$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 1;

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = '/home/devon32/public_html'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/devon32/public_html/Sources'; # Path to the Sources directory.

Perhaps this will give you some more information. Any clue what I'm doing wrong?
 
Last edited:

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
The error in your first post shows that you have the mysql user "devon32_forums" set. But you posted the user is "devon32_elixer".

Are you sure you have the right user and password in your config file ?
 
Last edited:

seph32

New Member
Messages
8
Reaction score
0
Points
0
When I log into my cpanel it shows up devon32_elixer and devon32_forums, I assume this is correct cause I don't know myself either. I've tried many combinations or trying to swap them, but nothing worked it seems.
Edit:
Thankyou for your support and feedback I have already found a solution my forum works now. I was trying to upload my backup of my old forum on this one after giving up I tried installing a clean forum and it worked.
 
Last edited:
Status
Not open for further replies.
Top