Page 1 of 1

localhost not recognized

PostPosted: 15. March 2010 18:31
by nikooo777
hello, i have a weird problem here.

i am acutally trying to install a tool on my server which requires a mysql database.
the problem is that at a certain point it asks me for the address of the mysql server. so i set it to localhost and this is the output i get:

Database Error

Server Address: localhost
Server Username: sb

Error Diagnostic:
Could not connect to database server. Check that the values of DB_ADDR, DB_USER and DB_PASS in config.php are set correctly.

Server Error: (1045) Access denied for user 'sb'@'localhost' (using password: YES)


i also tryed to use 127.0.0.1 but i get:

Database Error

Server Address: 127.0.0.1
Server Username: sb

Error Diagnostic:
Could not connect to database server. Check that the values of DB_ADDR, DB_USER and DB_PASS in config.php are set correctly.

Server Error: (1045) Access denied for user 'sb'@'localhost' (using password: YES)


it seems that it doesnt recognize localhost and plus, this "tool" uses "localhost" when you type 127.0.0.1.

my /etc/hosts:

127.0.0.1 localhost
[...]



i am using xampp under debian and i also have other databases working perfectly with "127.0.0.1" as ip (cause localhost doesn't work)

i'd like to get an help. thank you,
Niko

Re: localhost not recognized

PostPosted: 16. March 2010 06:13
by Altrea
Server Error: (1045) Access denied for user 'sb'@'localhost' (using password: YES)


Do you have a MySQl User 'sb' and is the password for this user correct?

Re: localhost not recognized

PostPosted: 16. March 2010 11:36
by nikooo777
yes i do

Re: localhost not recognized

PostPosted: 16. March 2010 14:00
by Altrea
Are you really really sure?
Please double check this.

If the host is unknown you will get an error like this:
MySQL Error (2005): Unknown MySQL server host 'localhost2' (11004)

or like this
MySQL Error (2003): Can't connect to MySQL server on 'XXX.XXX.XXX.XXX' (10061)
(like the MySQL Server isn't started)

Re: localhost not recognized

PostPosted: 16. March 2010 17:05
by nikooo777
i will check for it again... thank you for the support. i'll post for results

Re: localhost not recognized

PostPosted: 16. March 2010 18:07
by nikooo777
okay, i fixed all. i made an epic confusion with databases names and users... i now fixed everything. thank your for the support :)