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…