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

Sample Data Installation Issue #1539

Closed
TRMMarketing opened this issue Jul 22, 2015 · 7 comments
Closed

Sample Data Installation Issue #1539

TRMMarketing opened this issue Jul 22, 2015 · 7 comments

Comments

@TRMMarketing
Copy link

Attempted to install sample data on an clear magento 2 1.0 beta following: http://devdocs.magento.com/guides/v2.0/install-gde/install/sample-data.html#instgde-prereq-sample-intro

When I run bin/magento setup:upgrade I am encountering the following errors:

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

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

@mazhalai
Copy link
Contributor

@TRMMarketing Thank you for reporting this issue. Can you please verify if the database connection is correct in app\etc\env.php and if your database is running fine.

@TRMMarketing
Copy link
Author

It is correct. To test I setup an entirely new install as well and walk through the steps described again and received the exact same error. This was a brand new installation that was fully functional.

@ghost
Copy link

ghost commented Jul 22, 2015

If Magento was installed first, did you use these steps: http://devdocs.magento.com/guides/v2.0/install-gde/install/sample-data.html#instgde-install-sample-enable-after

The only other obvious thing is that I updated that page yesterday to update this command:

composer require magento/sample-data:~1.0.0-beta

Before, it was using an older 0.74-beta15 version.

@TRMMarketing
Copy link
Author

Followed the sample data after installation data.

It appears this error is occurring whenever the bin/magento setup:upgrade is run as I just ran this to test a sample module as well and the same issue arose.

@okiii
Copy link

okiii commented Jul 25, 2015

I can confirm, I've had the exact same issues. I've never been able to install the sample data during the initial install or since the new ./magento sampledata:install method.

Edit: Installing via command line as mentioned on #1288 (comment) allowed me to install correctly.

@buskamuza
Copy link
Contributor

Similar to #1569
Hi @TRMMarketing , please, take a look at #1569 (comment) and let us know if it helps.

@TRMMarketing
Copy link
Author

@buskamuza Thanks that link provided a solution.

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

5 participants