Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
crmpicco opened this issue Mar 9, 2015 · 4 comments

Comments

@crmpicco
Copy link

crmpicco commented Mar 9, 2015

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
Copy link

tunder commented Mar 9, 2015

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

@crmpicco
Copy link
Author

crmpicco commented Mar 9, 2015

@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
Copy link

tunder commented Mar 9, 2015

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
Copy link
Author

crmpicco commented Mar 9, 2015

@tunder Thanks, email sent 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants