# Getting mysql error on running tutor local launch

**URL:** <https://discuss.openedx.org/t/getting-mysql-error-on-running-tutor-local-launch/10705>\
**Category:** Development\
**Created:** [July 14, 2023, 4:04am UTC](https://discuss.openedx.org/t/getting-mysql-error-on-running-tutor-local-launch/10705 "2023-07-14T04:04:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshington](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/joshington/32/5380_2.png) [@joshington](https://discuss.openedx.org/u/joshington)\
**Post date:** [July 14, 2023, 4:04am UTC](https://discuss.openedx.org/t/getting-mysql-error-on-running-tutor-local-launch/10705/1 "2023-07-14T04:04:35Z")

</div>

here is the error message. on running tutor local launch

Error: Command failed with status 1: docker-compose -f /home/punchu/.local/share/tutor-nightly/env/local/docker-compose.yml -f /home/punchu/.local/share/tutor-nightly/env/local/docker-compose.prod.yml -f /home/punchu/.local/share/tutor-nightly/env/local/docker-compose.tmp.yml --project-name tutor\_nightly\_local -f /home/punchu/.local/share/tutor-nightly/env/local/docker-compose.jobs.yml -f /home/punchu/.local/share/tutor-nightly/env/local/docker-compose.jobs.tmp.yml run --rm mysql-job sh -e -c echo “Initialising MySQL…”  
mysql\_connection\_max\_attempts=10  
mysql\_connection\_attempt=0  
until mysql -u root --password=“6bDuKW1u” --host “mysql” --port 3306 -e ‘exit’  
do  
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]  
then  
echo “MySQL initialisation error” 1\>&2  
exit 1  
fi  
sleep 10  
done  
echo “MySQL is up and running”

# edx-platform database

mysql -u root --password=“6bDuKW1u” --host “mysql” --port 3306 -e “CREATE DATABASE IF NOT EXISTS openedx;”  
mysql -u root --password=“6bDuKW1u” --host “mysql” --port 3306 -e “CREATE USER IF NOT EXISTS ‘openedx’;”  
mysql -u root --password=“6bDuKW1u” --host “mysql” --port 3306 -e “ALTER USER ‘openedx’@‘%’ IDENTIFIED BY ‘yFEuYARE’;”  
mysql -u root --password=“6bDuKW1u” --host “mysql” --port 3306 -e “GRANT ALL ON openedx.\* TO ‘openedx’@‘%’;”

I really need your help, as i cant proceed
