Install on a Mac with Mamp

27 views
Skip to first unread message

gatubato

unread,
Sep 25, 2011, 6:33:22 AM9/25/11
to phundament-dev
Hi, get the same error message in Lev post: "issues installing
phundament-2.1-b9 on mac (xampp)"
--
Application path set to: /Applications/XAMPP/xamppfiles/htdocs/
phundament
Opening database connection 'mysql:dbname=##;host=localhost' ...
PHP Error[2]: PDO::__construct(): [2002] No such file or directory
(trying to connect via unix:///var/mysql/mysql.sock)
in file /Applications/XAMPP/xamppfiles/htdocs/phundament/modules/p2/
commands/InstallCommand.php at line 118 ...
--
any solution?
Thanks, Gatubato

schmunk

unread,
Sep 26, 2011, 6:05:42 PM9/26/11
to phundam...@googlegroups.com
Hi Gatubato,

that looks like a problem with your PHP MySQL config.
Can you connect to your MySQL Server with e.g. PHPmyAdmin?


Best regards,
schmunk

Lev

unread,
Sep 26, 2011, 11:10:11 PM9/26/11
to phundament-dev
I ended up doing a workaround:

1. Go to the installation code (as i recall its in the install
controller), comment out the pre install checks.
2. Run the install, say no to the DB part of the install
3. Take the sql code, run it from phpMyAdmin

Did the job for me.

gatubato

unread,
Sep 27, 2011, 3:22:08 AM9/27/11
to phundament-dev
Thanks Schmunk, thanks Lev for your answers.
I solved as you suggested. Now everything works.
Thanks again, Gatubato

schmunk

unread,
Sep 27, 2011, 5:17:06 AM9/27/11
to phundam...@googlegroups.com
Just one more thing ... some PHP installations on OS X use another socket file for MySQL.

If I do something like
$ php -i | grep SOCKET

I get
$ php -i | grep SOCKET
MYSQL_SOCKET => /opt/local/var/run/mysql5/mysqld.sock
MYSQLI_SOCKET => /opt/local/var/run/mysql5/mysqld.sock

Take a look if your socket file exists there.
Note that these values may differ between Apache and CLI.

Reply all
Reply to author
Forward
0 new messages