ruscomap/script/delete_rusco.sh
2024-08-19 16:56:29 +02:00

14 lines
No EOL
322 B
Bash

#!/bin/bash
# Script per cancellare tutti i record della table "markers"
# nano /var/www/html/leaflet/ruscomap/delete_rusco.sh
# Define database credentials
DB_USER="myuser"
DB_PASS="mypassword"
# Connect to MariaDB and execute commands
mariadb -u "$DB_USER" -p"$DB_PASS" <<EOF
USE ruscomap;
TRUNCATE TABLE markers;
EOF