Add scripts to load data into alternative databases

This commit is contained in:
Christoph Kluge
2022-06-23 18:05:45 +02:00
parent 46c1d90aab
commit d6d45c7366
2 changed files with 112 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
echo "Will run prerequisites 'apt install python3-pip' and 'pip install sqlite3-to-mysql'"
sudo apt install python3-pip
pip install sqlite3-to-mysql
echo "'sqlite3mysql' requires running DB container, will fail otherwise."
# -f FILE -d DBNAME -u USER -h HOST -P PORT
~/.local/bin/sqlite3mysql -f job.db -d ClusterCockpit -u root --mysql-password root -h localhost -P 3306