Tutor local quickstart fails at SQL initialization

When I try to run tutor local quick start I get the following error when its initializing MYSQL:

ERROR 1130 (HY000): Host '' is not allowed to connect to this MySQL server
    [10/10] Waiting for MySQL service (this may take a while)...
MySQL initialisation error
Error: Command failed with status 1: docker-compose -f C:\Users\naqi.azam\AppData\Local\tutor\tutor\env\local\docker-compose.yml -f C:\Users\naqi.azam\AppData\Loca
l\tutor\tutor\env\local\docker-compose.prod.yml --project-name tutor_local -f C:\Users\naqi.azam\AppData\Local\tutor\tutor\env\local\docker-compose.jobs.yml run --
rm mysql-job sh -e -c echo "Initialising MySQL..."
until mysql -u root --password="JFqujqi8" --host "mysql" --port 3306 -e 'exit'
    mysql_connection_attempt=$(expr $mysql_connection_attempt + 1)
    echo "    [$mysql_connection_attempt/$mysql_connection_max_attempts] Waiting for MySQL service (this may take a while)..."
    if [ $mysql_connection_attempt -eq $mysql_connection_max_attempts ]
      echo "MySQL initialisation error" 1>&2
      exit 1
    sleep 10
echo "MySQL is up and running"

# edx-platform database
mysql -u root --password="JFqujqi8" --host "mysql" --port 3306 -e 'CREATE DAT

# edx-platform database
mysql -u root --password="JFqujqi8" --host "mysql" --port 3306 -e 'CREATE DATABASE IF NOT EXISTS openedx;'
mysql -u root --password="JFqujqi8" --host "mysql" --port 3306 -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "qDTveC3e";'

can someone help me with this issue? Iā€™m using windows operating system.

1 Like

found a solution to this problem I removed the 3 database directories named as mysql, mongodb and redis inside


and re-run the tutor local quick start command again and it worked.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.