heysachin / MySQL-Auto_Increment-Checker

This Script will check all the tables having auto_increment attribute and notifies the user in Slack if it exceeds 80% of maximum capacity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MySQL Auto Increment Checker

The below script will Monitor the MySQL Database postman (change it to required Database) for tables which are about to run out of auto_increment ids and notify it in Slack.

Prerequisites

Below are the libraries used in the notebook.

MySQLdb, requests

How to run this project

  1. Install the required Libraries.
pip3 install MySQLdb
pip3 install requests
  1. Change the url to Slack Web Apps Url.

  2. Change user credentials and Database name of MySQL Server.

  3. Run the command: jupyter notebook and then select the file MySQL Auto Increment Checker.ipynb from the browser.

Output

output

Authors

  1. Sachin Dev S

About

This Script will check all the tables having auto_increment attribute and notifies the user in Slack if it exceeds 80% of maximum capacity


Languages

Language:Jupyter Notebook 100.0%