MyBB Community Forums

Full Version: SOLVED! SQL Error: 1045 - Access denied for user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Since I moved my sites to a different hosting company I now get this error when trying to access my forum:

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1045 - Access denied for user 'milten5'@'localhost' (using password: YES)
Query:
[READ] Unable to connect to MySQL server

Here's my config.php file. What' the fix?

$config['database']['type'] = 'mysqli';
$config['database']['database'] = 'miltenbe_mybb1';
$config['database']['table_prefix'] = 'mybb_';

$config['database']['hostname'] = 'localhost';
$config['database']['username'] = 'milten5';
$config['database']['password'] = 'xxxxxxxxx'
(2014-04-14, 07:19 PM)daklander Wrote: [ -> ]Since I moved my sites to a different hosting company I now get this error when trying to access my forum:

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1045 - Access denied for user 'milten5'@'localhost' (using password: YES)
Query:
[READ] Unable to connect to MySQL server

Here's my config.php file. What' the fix?

$config['database']['type'] = 'mysqli';
$config['database']['database'] = 'miltenbe_mybb1';
$config['database']['table_prefix'] = 'mybb_';

$config['database']['hostname'] = 'localhost';
$config['database']['username'] = 'milten5';
$config['database']['password'] = 'xxxxxxxxx'

I would guess the sql password name, database and/or password are incorrect you will need to look at init.php and adjust the values to your new database config
(2014-04-14, 09:43 PM)JimR Wrote: [ -> ]......
I would guess the sql password name, database and/or password are incorrect you will need to look at init.php and adjust the values to your new database config

I saw nothing in init.php that would relate. However, config.php setting are correct.
Veify in cpanel,username database!
(2014-04-16, 10:16 AM)adi19 Wrote: [ -> ]Veify in cpanel,username database!

Thank you. That's been done.
check again for the database username and the databasename... just to be sure.
(2014-04-17, 05:30 PM)Abrogator Wrote: [ -> ]check again for the database username and the databasename... just to be sure.

dyslexia problem with the username. Blush

Solved