ruscomap/script/delete_rusco.sh

14 lines
318 B
Bash
Raw Normal View History

2024-08-19 16:56:29 +02:00
#!/bin/bash
# Script per cancellare tutti i record della table "markers"
# nano /var/www/html/leaflet/ruscomap/delete_rusco.sh
2024-08-19 20:16:00 +02:00
# Imposta credenziali
2024-08-19 16:56:29 +02:00
DB_USER="myuser"
DB_PASS="mypassword"
2024-08-19 20:16:00 +02:00
# Connetti al db e cancella la table markers
2024-08-19 16:56:29 +02:00
mariadb -u "$DB_USER" -p"$DB_PASS" <<EOF
USE ruscomap;
TRUNCATE TABLE markers;
EOF