This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[Parameter(Mandatory, HelpMessage = 'Path to Maria DB Installation. C:\Program Files\MariaDB 10.9')] | |
[string]$SQLPath, | |
[Parameter(Mandatory, HelpMessage = 'Location to store backups. C:\DBServerBackups')] | |
[string]$BackupDirectory, | |
[Parameter(Mandatory, HelpMessage = 'SQL User with access to your DB.')] | |
[string]$User, | |
[Parameter(Mandatory, HelpMessage = 'Password for the SQL User.')] | |
[string]$Pass, | |
[Parameter(HelpMessage = 'Port Number for your SQL Instance. Default: 3306')] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import time | |
import tkinter as tk | |
from os import path | |
from tkinter import filedialog, END | |
from pymongo import MongoClient | |
uri = "mongodb://user:password@host/db?authSource=authdb" | |
client = MongoClient(uri) |