shopware: Local installation: Unknown MySQL server host

Then I run ./psh.phar install as suggested in the guide for local installation, an error occurs:

ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (2)

This is due to the -h 'mysql' option for the mysql command at step 3/28.

I fixed the error by registering 127.0.0.1 mysql in /etc/hosts. Maybe this information should be added to the installation guide?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 16 (5 by maintainers)

Most upvoted comments

First run ./psh.phar docker:stop Then run the following commands ./psh.phar docker:start ./psh.phar docker:ssh ./psh.phar install

First run ./psh.phar docker:stop Then run the following commands ./psh.phar docker:start ./psh.phar docker:ssh ./psh.phar install

that worked for me!

Yes, but the database host in the setup defaults to localhost, not mysql.