Unknown MySQL server host 'mysql' (-3)

Installing a new CMS on Win10 with Docker Desktop. Getting errors in Docker logs:

Waiting for MySQL to start - max 300 seconds
MySQL started
Updating settings.php
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)
New install
Provisioning Database
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)
Phinx by CakePHP - https://phinx.org. 0.9.2
using config file .varwwwcmsphinx.php
using config parser php
using migration paths
- /var/www/cms/db/migrations
warning no environment specified, defaulting to: production
using adapter mysql
using database cms
In MysqlAdapter.php line 115:
There was a problem connecting to the database: SQLSTATE[HY000] [2002] php_
network_getaddresses: getaddrinfo failed: Try again
migrate [-c|--configuration CONFIGURATION] [-p|--parser PARSER] [-e|--environment ENVIRONMENT] [-t|--target TARGET] [-d|--date DATE] [-x|--dry-run]
Configuring Database Settings
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-3)

I’ve run ‘docker compose -f cms_custom-ports.yml down’, deleted contents of ‘C:\Xibo\shared\db’ and run ‘docker compose -f cms_custom-ports.yml up -d’ to try and reset.
cms_custom-ports.yml just has the web port changed to 8080
Thanks in advance…

1 Like

I gave up and hosted the CMS on Ubuntu and it just installed and loaded no problem. Suspect issue was with Windows and the Linux subsystem and documentation not being quite precise enough. Anyway, workaround was to use Unbuntu instead.

1 Like

exactly the same issue on a vanilla install with docker and latest stable release
any one got any ideas on why its doing this?

The Xibo Community site uses cookies. What are cookies?