#!/bin/bash
# Test update_sql_config with a safe value (same as current)
BODY='{"data":[{"name":"max_allowed_packet","section":"mysqld","value":"268435456"}]}'
echo "=== POST update_sql_config (safe value) ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' -X POST -H 'Content-Type: application/json' -d "$BODY" 'https://127.0.0.1:2087/json-api/update_sql_config?api.version=1'
echo
echo "=== verify my.cnf unchanged ==="
grep -i 'max_allowed_packet' /etc/my.cnf
