MyBB Community Forums

Full Version: which file to edit to connect to database?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried connecting to my database and simply edit the config.php file. is there anything else beside it?
because I still can't connect after editing it. please help me figure this as i need it up and running


Quote:$config['database']['hostname'] = 'enhu.host.com';
$config['database']['username'] = 'enhu';
$config['database']['password'] = 'MyBBforumpassword';
If you can't connect, either the credentials are wrong or something is wrong with the database server. Try using 127.0.0.1 as the hostname.
i'm pretty sure it correct. its actually... it use to work but since I tried editing some details and for security because I've hired someone lately. I changed it just an ago.

$config['database']['hostname'] = 'enhu.fatcowmysql.com';
$config['database']['username'] = 'enhu';
$config['database']['password'] = 'passwdxxxxx';
Check again. If MyBB says the credentials are incorrect, they're incorrect.