fix permission and trouble on mysql docker

This commit is contained in:
root
2025-06-11 13:43:24 +07:00
parent f92655e3e2
commit 9b25a772a6
8 changed files with 165 additions and 128 deletions

View File

@@ -107,6 +107,9 @@ start_containers() {
print_status "Waiting for MySQL to be ready..."
sleep 20
# Wait a bit more for MySQL to be fully ready
sleep 10
# Check if database was imported automatically
if docker-compose exec -T db mysql -u root -proot -e "USE ckb_db; SHOW TABLES;" > /dev/null 2>&1; then
table_count=$(docker-compose exec -T db mysql -u root -proot -e "USE ckb_db; SHOW TABLES;" 2>/dev/null | wc -l)
@@ -118,7 +121,7 @@ start_containers() {
fi
else
print_warning "Database not accessible. Running manual import..."
sleep 10
sleep 15
./docker-import-db.sh dev
fi