Page MenuHomePhabricator

"Cannot access the database" error on http://localhost:8080 after Docker setup on Windows
Closed, DuplicatePublic

Assigned To
None
Authored By
Sushrith_Bogi
Dec 25 2022, 6:10 AM
Project Tags
None
Referenced Files
F35894348: localhost.png
Dec 25 2022, 6:10 AM
F35894346: output.png
Dec 25 2022, 6:10 AM

Description

I have followed all steps of DEVELOPERS.md even though I keep getting this error

These are the steps I followed are:

1.Installed Docker Desktop

2.Created a .env file in the root of the MediaWiki core repository, and copied these contents into that file:

MW_SCRIPT_PATH=/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=
XDEBUG_ENABLE=true
XHPROF_ENABLE=true

3.Started the container:

docker compose up -d

4.Installed PHP dependencies from Composer:

docker compose exec mediawiki composer update

5.Installed MediaWiki:

docker compose exec mediawiki /bin/bash /docker/install.sh

The following is the output I got after running the last command:

output.png (1,901×881 px, 93 KB)

Error on visiting localhost:8080:

localhost.png (1,540×762 px, 128 KB)

Browser: Google Chrome
OS:Microsoft Windows
Docker version: 20.10.21