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

Errors on setup:upgrade #1569

Closed
eCommerceGorilla opened this issue Jul 26, 2015 · 2 comments
Closed

Errors on setup:upgrade #1569

eCommerceGorilla opened this issue Jul 26, 2015 · 2 comments

Comments

@eCommerceGorilla
Copy link

Spent the day getting Magento 2 setup and running. Installations went smooth and could navigate and use the stores front and back. However, whenever I run bin/magento setup:upgrade I am receiving the following errors:
[Zend_Db_Adapter_Exception]
SQLSTATE[HY000] [2002] No such file or directory

[PDOException]
SQLSTATE[HY000] [2002] No such file or directory

I have tried this on both a local AMPPS testing environment and a remote nexcess SIP with the Magento 2 requirements and the error persists in both environments. I located another poster with this error however they were attempting to install sample data which I was not.

Is there something I am missing or is this a platform bug at this point?

@buskamuza
Copy link
Contributor

Hi @eCommerceGorilla , as i can see such issue may be caused by incorrect settings for mysql.sock in PHP configuration. See #737 (comment)

Could you try to fix it and let us know if it helps? Probably, you'll have different path for the sock file.
Possible, your PHP CLI has different settings than web PHP, so you don't have this error in Setup Wizard during installation.

@eCommerceGorilla
Copy link
Author

Sorry for the delay but didn't have time to dig into this further until the weekend. The issue was indeed an issue with two php settings being used locally. For the remote server it turned out to be two installs of php, one for the web user and one when run via shell.

Incase someone else runs into this and needs to troubleshoot it. In your shell run php -i and reference the path to your php configuration. On the server upload a php file with phpinfo() and check that the setting "Loaded Configuration File " matches that retrieved via php -i

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

No branches or pull requests

3 participants