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

installation failed at (10/46) #181

Open
Obstsalat98 opened this issue May 24, 2022 · 1 comment
Open

installation failed at (10/46) #181

Obstsalat98 opened this issue May 24, 2022 · 1 comment

Comments

@Obstsalat98
Copy link

Obstsalat98 commented May 24, 2022

PHP Version

7.4.3

Shopware Version

shopware 6

Expected behaviour

I followed the guide in the academy. Expected to run smooth.

Actual behaviour

(9/46) Starting

if grep -q static-analyze platform/composer.json; then composer update --working-dir=platform; fi
grep: platform/composer.json: No such file or directory

(10/46) Starting

mysql -u 'app' -p'app' -h 'mysql' --port='3306' -e "DROP DATABASE IF EXISTS `shopware`"
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)

Execution aborted, a subcommand failed!

application@390e674cd653:/app$ mysql --version
mysql Ver 15.1 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

How to reproduce

I don't know how to reproduce this issue.

@gotu
Copy link

gotu commented May 30, 2022

First check if mysql-server is running. (Running "mysql" command, as you did, is starting an mysql-client, it does not check if a mysql-server is running).

If you are using docker development setup like described here: https://developer.shopware.com/docs/guides/installation/docker
Check that the mysql container is running and not exited. If exited look in the log for the reason. It may be something like:

$ docker logs development_app_mysql_1

2022-05-30T09:49:07.593285Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.

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