title: Import multiple database schemas in mysql in docker container
body: <p>want to upload multiple database schema using backup.sql. Then when try to migrate showing <strong>(1044, "Access denied for user 'pranay'@'%' to database 'core'")</strong>
  I have added snapshot of my files for reference</p>
  
  <pre><code>***docker-compose.yml***
  version: '3'
  services:
  db:
  image: mysql:5.7
  container_name: mirror_core
  volumes:
    - ./mirror/core.sql:/docker-entrypoint-initdb.d/core.sql:rw
    - ./mysql:/var/lib/mysql:rw
  expose:
    - "3306"
  restart: always
  environment:
    - MYSQL_ROOT_PASSWORD=mobigo@123
    - MYSQL_USER=pranay
    - MYSQL_PASSWORD=mobigo@123
  web:
  build: .
  container_name: mirrorweb
  command: bash -c "python manage.py collectstatic --no-input &amp;&amp; gunicorn mirror.wsgi -b 0.0.0.0:8000"
  links:
    - db
  volumes:
    - ./mirror:/mirror
  expose:
    - "8000"
  depends_on:
    - db
  </code></pre>
  
  <p><strong><em>core.sql</em></strong></p>
  
  <pre><code>CREATE DATABASE  `core` ;
  CREATE DATABASE  `murad` ;
  CREATE DATABASE  `mysqltest` ;
  </code></pre>
  
  <p><strong><em>settings.py</em></strong></p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'core',
          'USER':'pranay',
          'PASSWORD':'mobigo@123',
          'HOST':'db',
          'PORT':'',
      }
  }
  </code></pre>
  
  <p>steps are as follows : docker-compose build >> docker-compose up >> docker-compose exec web bash >> python manage.py migrate (within docker container)
  <strong>on migrate getting error as (1044, "Access denied for user 'pranay'@'%' to database 'core'")</strong></p>