merofeev / mysql2xlsx

Simple python script for exporting whole mysql database to Microsoft Excel 2007 (xlsx) file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mysql2xlsx

Simple python script for exporting whole mysql database to Microsoft Excel 2007 (xlsx) file. The script was optimized for work with large databases containing binary data.

Installation

To use the script you need to install the following required modules:

  1. openpyxl
  2. optparse
  3. progressbar
  4. mysql.connector

Mysql connector can be downloaded from http://dev.mysql.com/downloads/connector/python/ Other dependencies can be installed using pip

pip install openpyxl
pip install optparse
pip install progressbar33

##Usage Usage: mysql2xlsx.py [options]

Options:

Option Description
--help show this help message and exit
-h HOST, --host=HOST DB hostname
-u USER, --user=USER DB username
-p PASSWORD, --password=PASSWORD DB password
-d DATABASE, --database=DATABASE Database name
-o OUTPUT, --output=OUTPUT Output xlsx filename
-v, --verbose Report progress [default]
-q, --quiet Be quiet

About

Simple python script for exporting whole mysql database to Microsoft Excel 2007 (xlsx) file.

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%