Forums / Installing on a Mac Server / Connection to Database failed

Connection to Database failed

Views: 24,658

Results 1 to 6 of 6
16 May 2016, 11:51 PM
#1
tifischer avatar

tifischer

New Zenner

Join Date:
Apr 2013
Location:
Allen, TX
Posts:
34
Plugin Contributions:
0

Connection to Database failed

Switching from XAMPP to local Apache2/php(5.5.31)/mysql(5.0.11) install on my mac. Everything is installed. When I try to install Zencart the Connection to Database failed error comes on. I double checked everything...the login pass hostname created database. What else could cause this problem?

17 May 2016, 12:14 AM
#2
tifischer avatar

tifischer

New Zenner

Join Date:
Apr 2013
Location:
Allen, TX
Posts:
34
Plugin Contributions:
0

Re: Connection to Database failed

Also wanted to mention that I am able to connect to the MySQL Database via command line.

17 May 2016, 12:58 AM
#3
tifischer avatar

tifischer

New Zenner

Join Date:
Apr 2013
Location:
Allen, TX
Posts:
34
Plugin Contributions:
0

Re: Connection to Database failed

phpmyadmin also connects.

17 May 2016, 1:48 AM
#4
tifischer avatar

tifischer

New Zenner

Join Date:
Apr 2013
Location:
Allen, TX
Posts:
34
Plugin Contributions:
0

Re: Connection to Database failed

The issue was that the server mysql.socket was not being located. OS X was looking for it in /var and apache in /tmp. Problem solved.

17 May 2016, 1:50 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Connection to Database failed

Are you using the MAMP distribution for your MAC??

Zen-Venom Get Bitten

22 Oct 2016, 4:24 AM
#6
evelynluna avatar

evelynluna

Banned

Join Date:
Oct 2016
Posts:
2
Plugin Contributions:
0

Re: Connection to Database failed

Congrats!