DbPatch is an open-source PHP command-line utility to patch your MySQL database.

Add a patch file to your codebase and use a single command to easily update your database.

Start using DbPatch now and enjoy the simplicity of managing your database.

Get started


  • Detect changes in executed patches
  • Support SQL and PHP patches
  • Run patch files from different branches
  • Easy to use with automated deployment scripts
  • Dump database manually or automatically before applying a patch