Page 1 of 1

Access denied for user 'administrator'@'localhost'

Posted: 19 Oct 2011, 15:28
by lveit
I'm trying to install Mantis 1.2.8.
I'm getting an error running install.php.
MySQL version 5.1.54.

Type of database: MySQL
Hostname: localhost
Username: root
Password: xxx
Database name: mantis
Admin Username: administrator
Admin Password: root

All checks come up GOOD except the following:

Attempting to connect to database as admin BAD
Does administrative user have access to the database? ( Access denied for user 'administrator'@'localhost' (using password: YES) )

Can anyone tell me how to get past this error?

Re: Access denied for user 'administrator'@'localhost'

Posted: 20 Oct 2011, 12:21
by atrol
lveit wrote: Admin Username: administrator
Admin Password: root
Do you have a database user "administrator" with password "root" and you can connect to that database with other tools?

Re: Access denied for user 'administrator'@'localhost'

Posted: 20 Oct 2011, 20:31
by lveit
I set Username and Admin Username to the same value - the MySQL user name.
I set Password and Admin Password to the same value - the password for that user.
Now the install works.

Thanks for your help.