#!/usr/bin/env python
# -*- coding: utf-8 -*-

######################################
# BDD.py
# Utilité: 
# Auteur: RootKitDev <<EMAIL>>
# Mise à jour le: 17/08/2017
######################################

import sys
import mysql.connector

from libs.common.Variable_Manager import *

file = open(CONF_PATH + "/Type", "r") 
Type = file.read() 

if Type == "SQL":
	conn = mysql.connector.connect(host="localhost",user="Backup",password="<PASSWORD>")
else:
	conn = mysql.connector.connect(host="localhost",user="AthenaUser",password="<PASSWORD>", database="Athena")
cursor = conn.cursor()

#!/usr/bin/env python
# -*- coding: utf-8 -*-

######################################
# BDD.py
# Utilité: 
# Auteur: RootKitDev <<EMAIL>>
# Mise à jour le: 17/08/2017
######################################

import sys
import mysql.connector

from libs.common.Variable_Manager import *

file = open(CONF_PATH + "/Type", "r") 
Type = file.read() 

if Type == "SQL":
	conn = mysql.connector.connect(host="localhost",user="Backup",password="<PASSWORD>")
else:
	conn = mysql.connector.connect(host="localhost",user="AthenaUser",password="<PASSWORD>", database="Athena")
cursor = conn.cursor()

#!/usr/bin/env python # -*- coding: utf-8 -*- ###################################### # BDD.py # Utilité: # Auteur: RootKitDev <<EMAIL>> # Mise à jour le: 17/08/2017 ######################################