Link to home
Start Free TrialLog in
Avatar of sammySeltzer
sammySeltzerFlag for United States of America

asked on

Error establishing database connection using XAMPP on web server

Hello experts,

I recently installed xampp on our webserver.

I tried to load wordpress using http://localhost/mysite/

The page came up just fine.

However, we would like our users to be able to view the wordpress site from their own PCs. That's why we loaded xampp on the server instead of on local PC.

So when I changed the url from localhost to servername (http://servername/mysite/, I get Error establishing database connection.

Everything looks good including servername.

Any ideas what I am doing wrong?

Thanks in advance
Avatar of Ares Kurklu
Ares Kurklu
Flag of Australia image

If it is giving 'database connection' error, username or password must be wrong but saying that you should have the same error message in both instances giving they are pointing to the same place i assume you did http://localhost/mysite/ when you were in the server?
ASKER CERTIFIED SOLUTION
Avatar of sammySeltzer
sammySeltzer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sammySeltzer

ASKER

I solve my own problem.

The solution is posted with an explantion of how I arrived at that solution.