Shift with red gradient lettering

Upgrade from MySQL to MySQLi

The MySQLi Shift upgrades code using the MySQL extension to use the MySQLi extension.


A PHP codebase.

Why upgrade from MySQL to MySQLi?

The MySQL extension was deprecated in PHP 5.5 and removed in PHP 7. Upgrading your code to use the MySQLi extension provides a familiar, improved API and keeps you compatible with the latest versions of PHP.

MySQLi Upgrade

The MySQLi Shift upgrades your code to use the MySQLi extension, including:

  • Translating MySQL functions and constants to their MySQLi equivalent
  • Rearranging function parameters for MySQLi
  • Injecting the resource parameter for MySQLi functions
  • Normalizing parameters for mysqli_connect()
  • Detecting removed MySQL functions
Still have questions? Message @laravelshift on Twitter or email

Sign in with any of the following services to connect Shift with your Laravel project.

Don't use one of these services?

Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.