Download the PHP package j0celyn/ibd2mysql without Composer

On this page you can find all versions of the php package j0celyn/ibd2mysql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ibd2mysql

ibd2mysql

Latest Packagist release Latest Packagist release Latest Packagist release

Description

MySQL provides the configuration flag innodb_force_recovery to help you fix several kinds of errors.
You should first check if it can help you fix your problems.

ibd2mysql is a utility to try to recover InnoDB tables under the following conditions:

Features

Note: This utility is not able to recover MySQL triggers, MySQL events and MySQL user-created routines (functions and procedures).

Requirements

Installation

This composer command will create a new directory ibd2mysql and install the files there:

composer create-project j0celyn/ibd2mysql ibd2mysql

Setup

⚠️ The IBD file format evolving with each MySQL version, it is highly recommended to run this script using the version of the MySQL Server that created the IBD files you are trying to recover.
If using a different MySQL version, you will probably still be able to extract the SDI information and create the SQL files. However the --repair option is likely to fail with fatal errors when importing your IBD files into the MySQL Server.

Rename config-empty.php to config.php, then edit its values:

Usage

Here are the available options:

When the script is called with more than one option, they will always run in the same order: sdi sql repair

To run the script, use one or more options.

Examples:

php convert.php --sdi
php convert.php --sdi --sql
php convert.php --sdi --sql --repair

Why this utility?

While upgrading my local MySQL server, I chose the wrong option and it initialized a new MySQL dictionary, thus wiping the current MySQL dictionary.
As I used innodb_file_per_table I knew my tables were still there, but the MySQL server had no knowledge of them anymore.
For most of my local databases I had a backup I could restore them from.
A few databases didn't contain valuable information and it didn't matter if they were lost.
And there were a few other databases without backup, I wanted to recover, if still possible.

I tried to find an existing command or utility to recover my databases, but couldn't find anything.
The configuration flag innodb_force_recovery was useless to fix my problems. The utility ibd2sdi provided with the MySQL server is useful to get the SDI data from a table (table information in JSON format)...but there's no utility to convert this SDI data into proper MySQL statements that can be run to recreate a table.

Then I decided to create this utility.

ibd2mysql was tested with IBD files created by MySQL 8.0.23 (the version I had before I performed the update and destroyed the MySQL dictionary). I could successfully recover all my files :

As long as there are no breaking changes in the SDI file format, this utility may work with MySQL Server 8.0.23 and newer versions.


All versions of ibd2mysql with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
ext-pdo Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package j0celyn/ibd2mysql contains the following files

Loading the files please wait ....