PHP Classes
elePHPant
Icontem

PHP MySQL Shell: Execute MySQL queries from the command line shell

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-07-23 (4 months ago) RSS 2.0 feedNot enough user ratingsTotal: 185 All time: 8,404 This week: 352Up
Version License PHP version Categories
mysqlshell 1.0.0Free For Educatio...5PHP 5, Databases, Console
Description Author

This class can execute MySQL queries from the command line shell.

It can connect to a MySQL server running on a given host and reads SQL queries that the user can enter on the command line so it can execute them.

The class outputs the query results by dumping the query result rows as arrays to the console output.

If the user enters the command "exit", the class will exit and stops processing the SQL queries entered by the user.

Innovation Award
PHP Programming Innovation award nominee
July 2019
Number 5
MySQL is a very popular SQL database server used by many PHP applications. The client program, when available, can be started from the command line console and it allows you to perform any SQL queries on a given database.

This package provides a pure PHP based alternative to the MySQL client program if for some reason it is not available on the computer from which you want to perform the database queries you want to try.

Manuel Lemos
  Performance   Level  
Name: Dev Sharma <contact>
Classes: 3 packages by
Country: India India
Age: 17
All time rank: 3512244 in India India
Week rank: 100 Up16 in India India Up
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Just an example file
Plain text file shell.class.php Class The main class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:185
This week:0
All time:8,404
This week:352Up
User Comments (1)
There is `mysql` command at the CLI-level.
4 months ago (Alexander Ivanou)
12%Star