Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved SOLVED! SQL Error: 1045 - Access denied for user
#1
Not Solved
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'
#2
Not Solved
(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
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er

#3
Not Solved
(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.
#4
Not Solved
Veify in cpanel,username database!
#5
Not Solved
(2014-04-16, 10:16 AM)adi19 Wrote: Veify in cpanel,username database!

Thank you. That's been done.
#6
Not Solved
check again for the database username and the databasename... just to be sure.
#7
Not Solved
(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


Forum Jump:


Users browsing this thread: 1 Guest(s)