fix permission and trouble on mysql docker
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user