skip to Main Content

Drupal 8 is not connecting to Mysql in Docker – Phpmyadmin

Directories structure of durpal 8: . ├── docker-compose.yml ├── dump │   └── drupal.sql ├── sessions └── www └── core └── site └── modules └── vendor └── index.php My settings.php database configuration $databases['default']['default'] = array ( 'database' => 'drupal', 'username' =>…

VIEW QUESTION

Host 'X' is not allowed to connect to this MySQL server – Phpmyadmin

I wanna deploy MySQL+PHPMyAdmin. My docker-compose.yml: version: "3" services: db: image: mysql:5.7 restart: always container_name: db volumes: - ./~mysql:/var/lib/mysql - ./mysql.cnf:/etc/mysql/conf.d/my.cnf environment: MYSQL_DATABASE: "dbtest" MYSQL_ROOT_PASSWORD: "123456" MYSQL_ROOT_HOST: "%" networks: - db command: --default-authentication-plugin=mysql_native_password healthcheck: test: "mysqladmin ping -h localhost" interval:…

VIEW QUESTION
Back To Top
Search