localhost not recognized

Problems with the Linux version of XAMPP, questions, comments, and anything related.

localhost not recognized

Postby nikooo777 » 15. March 2010 18:31

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
nikooo777
 
Posts: 8
Joined: 15. March 2010 18:21

Re: localhost not recognized

Postby Altrea » 16. March 2010 06:13

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?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: localhost not recognized

Postby nikooo777 » 16. March 2010 11:36

yes i do
nikooo777
 
Posts: 8
Joined: 15. March 2010 18:21

Re: localhost not recognized

Postby Altrea » 16. March 2010 14:00

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)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: localhost not recognized

Postby nikooo777 » 16. March 2010 17:05

i will check for it again... thank you for the support. i'll post for results
nikooo777
 
Posts: 8
Joined: 15. March 2010 18:21

Re: localhost not recognized

Postby nikooo777 » 16. March 2010 18:07

okay, i fixed all. i made an epic confusion with databases names and users... i now fixed everything. thank your for the support :)
nikooo777
 
Posts: 8
Joined: 15. March 2010 18:21


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 70 guests