mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2026-06-25 04:50:39 +02:00
Add scripts to load data into alternative databases
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user