GithubHelp home page GithubHelp logo

optionalg / sqlseer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rasa/sqlseer

0.0 2.0 0.0 236 KB

Easily view, sort, filter, and download SQL data, using GUI, or custom written SQL or PHP.

License: MIT License

ApacheConf 0.51% Makefile 0.12% Shell 4.49% PHP 91.60% HTML 2.77% CSS 0.51%

sqlseer's Introduction

Sqlseer Flattr this

Simple, yet powerful, MySQL report generator. Reports can be saved to .csv, .html, .txt, .xls, and .xml formats.
To see Sqlseer in action, please visit sqlseer.smithii.com

Quick Start

First, install any dependencies that are needed. Then, install sqlseer:

git clone https://github.com/rasa/sqlseer
cd sqlseer
cp app/configs/dbconfig.ini.example app/configs/dbconfig.ini
vi app/configs/dbconfig.ini # add your database credentials
composer install

To secure your database credentials, run:

chmod 640 app/configs/dbconfig.ini
chgrp www-data app/configs/dbconfig.ini 

replacing www-data with the group of your web server.

For the SQL scripts in www/test-reports to work, the MySQL user will need to have CREATE/INSERT/DROP rights on the test database. The database does not need to be created beforehand.

One way to do this, is via the sample_data/create-sqlseer-user.sql script:

cd sample_data
mysql -uuser -ppassword <create-sqlseer-user.sql

Lastly, set up your web server to point to sqlseer/www. For example, with Apache 2.3 or earlier, use:

<VirtualHost *:80>
   ServerName sqlseer
   DocumentRoot /path/to/sqlseer/www

   <Directory /path/to/sqlseer/www>
       AllowOverride All
       Order allow,deny
       Allow from all
   </Directory>
</VirtualHost>

With Apache 2.4, use:

<VirtualHost *:80>
   ServerName sqlseer
   DocumentRoot /path/to/sqlseer/www

   <Directory /path/to/sqlseer/www>
       AllowOverride All
       Require all granted
   </Directory>
</VirtualHost>

Sample Data

To load the MySQL employee, sakila and world sample databases, install make, and then type:

cd sample_data
make MYSQL_OPTS="-u user -ppassword"
make distclean

where user is the MySQL username, and password is that user's password.

To remove the employee, sakila, and world databases, type:

make drop MYSQL_OPTS="-u user -ppassword"

Export Formats

SqlSeer can export in the following formats:

  • Comma separated values (.csv)
  • HTML (.html)
  • Plain Text (tab separated values) (.txt)
  • Microsoft Excel (.xls)
  • XML (.xml) (Same as mysql --xml output)
  • Zip (.zip)

Dependencies

SqlSeer depends on the following:

Install Apache

To install Apache in Debian and Debian derivatives, type:

sudo apt-get install apache2

Install PHP

To install PHP in Debian and Debian derivatives, type:

sudo apt-get install php5

Install Composer

To install Composer in ~/bin type:

curl -sS https://getcomposer.org/installer | php -- --install-dir=~/bin --filename=composer

To install Composer in /usr/local/bin type:

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Contributing

To contribute to this project, please see CONTRIBUTING.md.

Bugs

To view existing bugs, or report a new bug, please see issues.

Changelog

To view the version history for this project, please see CHANGELOG.md.

License

This project is MIT licensed.

Contact

This project was created and is maintained by Ross Smith II endorse

Feedback, suggestions, and enhancements are welcome.

sqlseer's People

Contributors

rasa avatar

Watchers

 avatar  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.