Skip to content

Instantly share code, notes, and snippets.

View VirajWadate's full-sized avatar

Viraj Wadate VirajWadate

  • Freelance Consultant
  • Pune
View GitHub Profile
# -*- 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
[dev]
host = 127.0.0.1
user = root
password = root
database = test