2017 © Pedro Peláez
 

yii2-extension yii2-recover-innodb-table

Yii2 component for recovering an innodb table from only an *.ibd file

image

efureev/yii2-recover-innodb-table

Yii2 component for recovering an innodb table from only an *.ibd file

  • Thursday, June 2, 2016
  • by efureev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Recovering an InnoDB table from only an *.ibd file for Yii 2

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --dev --prefer-dist efureev/yii2-recover-innodb-table:"~0.1.0"

or add, (*4)

"efureev/yii2-recover-innodb-table": "~0.1.0"

to the require-dev section of your composer.json., (*5)

Usage

To use this extension, simply add the following code in your application configuration (console.php):, (*6)

'controllerMap' => [
    'utilsdb' => [
        'class' => 'efureev\utilsdb\recoverinnodb\RecoverController',
    ],
],

Recovering (Exp., database name dbase):

  1. Backup original db (Exp.: /usr/var/mysql/dbase/) to other dir (Exp.: /usr/var/mysql/dbase_bak)
  2. Delete original db
  3. Create new db with the same name (Exp.: /usr/var/mysql/dbase/)
  4. Create same structure as the original
  5. Run script: ./yii utilsdb/repair-table /usr/var/mysql/dbase /usr/var/mysql/dbase_bak
# to start recover db
php yii utilsdb/repair-table <original> <backup>

The Versions

02/06 2016

dev-master

9999999-dev

Yii2 component for recovering an innodb table from only an *.ibd file

  Sources   Download

MIT

The Requires

 

yii2 db innodb recover

02/06 2016

v0.1.2

0.1.2.0

Yii2 component for recovering an innodb table from only an *.ibd file

  Sources   Download

MIT

The Requires

 

yii2 db innodb recover

02/06 2016

v0.1.1

0.1.1.0

Yii2 component for recovering an innodb table from only an *.ibd file

  Sources   Download

MIT

The Requires

 

yii2 db innodb recover

02/06 2016

v0.1.0

0.1.0.0

Yii2 component for recovering an innodb table from only an *.ibd file

  Sources   Download

MIT

The Requires

 

yii2 db innodb recover