14 lines
322 B
Bash
14 lines
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
|