当我在phpMyAdmin中更改密码时,发生了此问题。我已经尝试检查/更改 config.inc.php ,尝试使用 mysqld --default-file通过cmd重置密码-初始化文件 ,或者当我尝试使用 mysql -u root 登录时,我一直收到相同的消息:
version: '3.1'
services:
traefik:
image: traefik
command: --docker --docker.swarmmode \
--docker.watch \
--web \
--loglevel=DEBUG
ports:
- 8081:80
- 9095:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
networks:
- rete
wordpress:
depends_on:
- database
image: 'wordpress:php7.2-apache'
restart: always
deploy:
replicas: 5
labels:
- "traefik.docker.network=sito_rete"
- "traefik.port=8090"
- "traefik.frontend.rule=Host:192.168.1.5"
- "traefik.backend.loadbalancer.sticky=true"
- "traefik.backend.loadbalancer.swarm=true"
ports:
- '8090:80'
environment:
WORDPRESS_DB_HOST: database
WORDPRESS_DB_USER: user
WORDPRESS_DB_PASSWORD_FILE: /run/secrets/db_password
WORDPRESS_DB_NAME: db
secrets:
- db_password
volumes:
- 'wp_data:/var/www/html'
networks:
- rete
database:
image: 'mysql:5.7'
environment:
MYSQL_DATABASE: db
MYSQL_USER: user
MYSQL_PASSWORD_FILE: /run/secrets/db_password
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_root_password
secrets:
- db_password
- db_root_password
volumes:
- 'wp_db_data:/var/lib/mysql'
networks:
- rete
secrets:
db_password:
external: true
db_root_password:
external: true
volumes:
wp_db_data:
external: true
wp_data:
external: true
networks:
rete:
driver: overlay