Giter Club home page Giter Club logo

mysql-slow-query-log-viewer's Introduction

MySQL slow query log viewer

This is a simple tool for parsing a MySQL slow query log and presenting it in a nice, easy-to-read format.

The tool uses my own PHP library gumbercules/mysqlslow to do the heavy lifting. I wrote this tool to meet two needs:

  • I was fed up of having to read the raw data from MySQL's logs
  • I wanted to learn a few tools for myself

Thus, this tool uses in various places the following tools that I have not used before:

  • HandlebarsJS
  • GulpJS
  • Silex

Requirements

  • PHP (I wrote this tool & the underlying lib on v5.5 - it may work on lower versions but I haven't tested).
  • Composer (for installing dependencies)
  • A web browser (duh)

Usage

Easy peasy. Download/clone this repository & navigate to the root directory. Install composer dependencies:

composer install

Change directory to the "app" directory and spin-up PHP's built-in web server:

php -S localhost:8080

Obviously you can change the above to match your own host/port requirements. You could of course also drop this tool into a hosted environment, but I haven't tested that (I know from experience that IIS may not play nicely with Silex's routing out of the box).

Finally, navigate to http://localhost:8080 (or whatever applies) and have at it.

Contributing

I don't really expect anyone to even see this tool let alone use it, but if you have found it and want to contribute then please feel free to fork and submit PRs. Please see the list of issues on Github if you're really keen!
You will need bower, npm and Gulp if you want to change the front-end stuff.

Contact

@garethellis on Twitter <3

mysql-slow-query-log-viewer's People

Contributors

garethellis36 avatar

Watchers

Malte avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.