Question

I'm looking for some help to get rid of this error. As i'm running mac os x 10.5 I had to install A newer version of php to support pdo. I did this using Marc Liyanage's installer package.

The problem I'm having now is that using php from the command line is invoking the default apple php, not the pdo enabled version causing bake to fail.

How can I get the bake command to use the correct version of php on my system?

Many Thanks

Ralph

Was it helpful?

Solution

you could specify the path to the new php.. ?

/path/to/new/php/php script_to_run.php

There may be an alternatives package under osx as well where you can specify which versions of which apps you can use.

OTHER TIPS

I was getting the following error while trying to bake v2.3.1

Warning Error: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in [/Library/WebServer/third-party/frameworks/cake_2.3.1/lib/Cake/Model/Datasource/Database/Mysql.php, line 158]

Error: Database connection "Mysql" is missing, or could not be created.

Fixed the issue by modifying pdo_mysql.default_socket in php.ini to point to right socket file path.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top