This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Purpose: Connect to mysql database using config file. | |
""" | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import configparser | |
import mysql.connector |
This file contains 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
[dev] | |
host = 127.0.0.1 | |
user = root | |
password = root | |
database = test |