Try to start server before truncate db (#1208)

This commit is contained in:
Maximiliano Redigonda 2022-05-16 17:32:50 -03:00 committed by GitHub
parent b578a26225
commit 713a5b5ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash
# DELETE ALL TABLES
service mysql start;
TABLES=$(mysql --host ${MYSQL_HOST} --port ${MYSQL_PORT} -u root development -e "SHOW TABLES IN development;" | awk '{ print $1}' | grep -v '^Tables')
for t in $TABLES