Try to start server before truncate db

This commit is contained in:
Maxi Redigonda 2022-05-16 11:50:29 -03:00
parent 3720baf370
commit 5b88e47202

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