Commit 75df3d72 by yiling.shen

fix database password use correct root password dev_password_123

parent 7399ea10
Pipeline #3206 passed with stages
in 1 minute 20 seconds
......@@ -40,14 +40,14 @@ deploy_to_production:
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose logs --tail=5 mysql"
- echo "Check MySQL container environment"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql env | grep -i mysql || echo 'Cannot get MySQL environment'"
- echo "Try database connection"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql mysql -u root -pcallback_system_2024 -e 'SHOW DATABASES;' || echo 'Database connection failed'"
- echo "Try database connection with correct password"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql mysql -u root -pdev_password_123 -e 'SHOW DATABASES;' || echo 'Database connection failed'"
- echo "Check database tables"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql mysql -u root -pcallback_system_2024 -e 'USE callback_system; SHOW TABLES;' || echo 'Cannot show tables'"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql mysql -u root -pdev_password_123 -e 'USE callback_system; SHOW TABLES;' || echo 'Cannot show tables'"
- echo "Check patients table count"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql mysql -u root -pcallback_system_2024 -e 'USE callback_system; SELECT COUNT(*) as total_patients FROM patients;' || echo 'Cannot count patients'"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql mysql -u root -pdev_password_123 -e 'USE callback_system; SELECT COUNT(*) as total_patients FROM patients;' || echo 'Cannot count patients'"
- echo "Check clinic distribution"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql mysql -u root -pcallback_system_2024 -e 'USE callback_system; SELECT clinic_name, COUNT(*) as count FROM patients GROUP BY clinic_name ORDER BY count DESC;' || echo 'Cannot get clinic distribution'"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd customer-recall && docker compose exec -T mysql mysql -u root -pdev_password_123 -e 'USE callback_system; SELECT clinic_name, COUNT(*) as count FROM patients GROUP BY clinic_name ORDER BY count DESC;' || echo 'Cannot get clinic distribution'"
- echo "Basic database check end"
- echo "Deployment completed successfully"
only:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment