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

Docker-Installation on Mac: Unknown MySQL server host 'mysql' #60

Closed
wanicode opened this issue May 29, 2019 · 1 comment
Closed

Docker-Installation on Mac: Unknown MySQL server host 'mysql' #60

wanicode opened this issue May 29, 2019 · 1 comment

Comments

@wanicode
Copy link

wanicode commented May 29, 2019

I get this when i try to do ./psh.phar install in the docker-container:

> php dev-ops/generate_ssl.php
        Private/Public key already exists. Skipping
(2/28) Starting
> composer install --no-interaction --optimize-autoloader --no-suggest --no-scripts
        Loading composer repositories with package information
        Installing dependencies (including require-dev) from lock file
        Nothing to install or update
        Generating optimized autoload files

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

EDIT: The MySQL-Container didn't start because there were files already in the volume directory.

@janpawellek
Copy link

Same issue for me. Thank you for the hint. I had to remove the following folder:

rm -rf ./dev-ops/docker/_volumes/mysql/

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