PHP Classes

Auto DB Up: Update a MySQL database from SQL files

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 616 All time: 5,103 This week: 115Up
Version License PHP version Categories
auto-db-up 0.1The PHP License3.0PHP 5, Databases, Systems administration


This class can be used to update a MySQL database from SQL files.

It can scan a given directory for files with numbered .sql name extension.

The class reads the number of the currently installed database version.

It reads the SQL statements from the SQL files the higher number than the last installed version and executes the statements as queries to a MySQL database.

Innovation Award
PHP Programming Innovation award nominee
May 2010
Number 5

Prize: One book of choice by Apress
During the lifetime of a database application, the database schema has to be changed to support the evolution of the application. Multiple sets of changes may need to be applied upgrade the application database schema.

This class provides an interesting solution to upgrade a MySQL database, either in development or production environments, by applying one or more sets of schema changes that were created since the last time the schema was upgraded.

Manuel Lemos
Picture of Alexandru Trandafir Catalin
Name: Alexandru Trandafir ... <contact>
Classes: 1 package by
Country: Spain Spain
Age: 36
All time rank: 301477 in Spain Spain
Week rank: 311 Up13 in Spain Spain Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file AutoDbUp.php Class The one and single file.
Accessible without login Plain text file example.php Example This code must be included into all the pages of your application.

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,103
This week:115Up
User Ratings User Comments (1)
 All time
This class did not use any Connection info with the database.
12 years ago (Md. Tariqul Islam Drubo)