При настройке MediaWiki непосредственно в веб-интерфейсе возникла ошибка:
"Cannot access the database: :real_connect(): (HY000/2002): Connection refused"
Совет сменить localhost на 127.0.0.1 не помог. Данные пользователя точно верные. Так же прикрепляю текст wiki.yml:
version: '3'
services:
mediawiki:
image: mediawiki
container_name: wiki
restart: always
ports:
- "8080:80"
volumes:
- ./mediawiki-data:/var/www/html/images
# - ~/LocalSettings.php:/var/www/html/LocalSettings.php
depends_on:
- database
networks:
- wiki_network
database:
image: mariadb:10.6
container_name: mediawiki
restart: always
environment:
MYSQL_ROOT_PASSWORD: WikiP@ssw0rd
MYSQL_DATABASE: mediawiki
MYSQL_USER: wiki
MYSQL_PASSWORD: WikiP@ssw0rd
volumes:
- ./mysql-data:/var/lib/mysql
networks:
- wiki_network
networks:
wiki_network:
driver: bridge
и логи Docker
MariaDB 11.7.2-MariaDB-ubu2404 source revision 80067a69feaeb5df30abb1bfaf7d4e713ccbf027 server_uid 72+4ASMvYxproTQgRqIDplDA1XA= as process 1
2025-02-27 21:24:04 0 [Note] InnoDB: Compressed tables use zlib 1.3
2025-02-27 21:24:04 0 [Note] InnoDB: Number of transaction pools: 1
2025-02-27 21:24:04 0 [Note] InnoDB: Using AVX512 instructions
2025-02-27 21:24:04 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2025-02-27 21:24:04 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 95
2025-02-27 21:24:04 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
2025-02-27 21:24:04 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2025-02-27 21:24:04 0 [Note] InnoDB: Completed initialization of buffer pool
2025-02-27 21:24:04 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
2025-02-27 21:24:04 0 [Note] InnoDB: End of log at LSN=47763
2025-02-27 21:24:04 0 [Note] InnoDB: Opened 3 undo tablespaces
2025-02-27 21:24:04 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2025-02-27 21:24:04 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2025-02-27 21:24:04 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2025-02-27 21:24:04 0 [Note] InnoDB: log sequence number 47763; transaction id 14
2025-02-27 21:24:04 0 [Note] Plugin 'FEEDBACK' is disabled.
2025-02-27 21:24:04 0 [Note] Plugin 'wsrep-provider' is disabled.
2025-02-27 21:24:04 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2025-02-27 21:24:04 0 [Note] InnoDB: Buffer pool(s) load completed at 250227 21:24:04
2025-02-27 21:24:05 0 [Note] Server socket created on IP: '0.0.0.0'.
2025-02-27 21:24:05 0 [Note] Server socket created on IP: '::'.
2025-02-27 21:24:05 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
2025-02-27 21:24:05 0 [Note] mariadbd: ready for connections.
Version: '11.7.2-MariaDB-ubu2404' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
Перемещено dataman из admin