installation failed at (10/46)
Obstsalat98 opened this issue · 1 comments
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.
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.