ruckus / ruckusing-migrations

Database migrations for PHP ala ActiveRecord Migrations with support for MySQL, Postgres, SQLite
Other
506 stars 95 forks source link

DB connection issue when trying to setup Ruckusing Migrations - Abstract.php No Such File Or Directory #155

Open crmpicco opened 9 years ago

crmpicco commented 9 years ago

I am trying to setup a ZF1 application on my local machine using MAMP. I am attempting to run the Ruckusing Database migrations, however it appears that I cannot connect to my DB.

This is the command I am running and the error I get.

crmpicco-MacBook:confirmation crmpicco$ php vendor/ruckusing/ruckusing-migrations/ruckus.php db:migrate ENV=development

Array
(
    [directory] => webapp
    [type] => mysql
    [host] => localhost
    [port] => 3306
    [database] => crmpicco_confirmation
    [user] => root
    [password] => root
    [socket] => /Applications/MAMP/tmp/mysql/mysql.sock
    [charset] => utf8
)

Abstract.php(144) : SQLSTATE[HY000] [2002] No such file or directory

Where should I look to resolve this issue?

phpinfo reads as follows:

PDO PDO support enabled

PDO drivers sqlite, pgsql, mysql pdo_mysql

PDO Driver for MySQL enabled Client API version 5.5.38 Directive Local Value Master Value pdo_mysql.default_socket /Applications/MAMP/tmp/mysql/mysql.sock /Applications/MAMP/tmp/mysql/mysql.sock

tunder commented 9 years ago

is it the same if you run: ./vendor/bin/ruckus.php db:migrate ENV=development ?

crmpicco commented 9 years ago

@tunder Slightly different error:

Base.php(1124) : mysqli::mysqli(): (HY000/2002): No such file or directory
Base.php(1126) : 
Could not connect to the DB, check host / user / password

Obviously it's a DB connection issue, but I am providing the Ruckusing config with the DB config details that MAMP provides me.

tunder commented 9 years ago

please send me an email (find my address in the profile) with the project structure (tree -d), location and content of ruckusing.conf.php. i'll try to help. i think this is not a bug but a configuration error on your side.

crmpicco commented 9 years ago

@tunder Thanks, email sent :+1: