2017 © Pedro Peláez
 

library mage-db-helper

Database Helpers (Magento)

image

andkirby/mage-db-helper

Database Helpers (Magento)

  • Friday, May 12, 2017
  • by andkirby
  • Repository
  • 1 Watchers
  • 1 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

Magento Database Helpers

Overview

There are DB procedures/functions to help work with Magento DB., (*1)

Composer installation

$ composer global require andkirby/mage-db-helper

global parater can be ommited if you won't use this installation globally., (*2)

Install scripts

$ mage-db-helper install -d dbname -u dbuser -p password1

If parameter --mysql-password (-p) (MySQL password) is ommited you may set it in dialog to make this command secured. Also you may skip asking password with parameter --no-password (-o);, (*3)

More

To get full help about parameters please use standard --help (-h) parameter., (*4)

$ mage-db-helper install -h

Usage Helpers in Database

There are available helpers: - DropAllTables, - ResetBaseUrl. - ResetAdmin., (*5)

DropAllTables

Remove all tables from database. It useful to prevent reinstalling exists procedures (like these ones)., (*6)

CALL dbname.DropAllTables();

ResetBaseUrl

Reset base URLs in core_config table. It useful when you migrate database., (*7)

CALL dbname.ResetBaseUrl('old-server.example.com', 'new-one.example.com');

ResetAdmin

Reset password, username (set to admin) and locking of first admin user (ID #1) in admin_user table. It useful to reset admin user quickly., (*8)

CALL dbname.ResetAdmin('your-new-password');

Note: dbname could be omitted in examples if you run use dbname; before., (*9)

The Versions

12/05 2017

dev-master

9999999-dev

Database Helpers (Magento)

  Sources   Download

MIT

The Requires

 

by Andrew Roslik

12/05 2017

v2.0.0

2.0.0.0

Database Helpers (Magento)

  Sources   Download

MIT

The Requires

 

by Andrew Roslik

21/08 2015

v1.2.0

1.2.0.0

Database Helpers (Magento)

  Sources   Download

MIT

The Requires

 

by Andrew Roslik

12/08 2015

v1.1.1

1.1.1.0

Database Helpers (Magento)

  Sources   Download

MIT

The Requires

 

by Andrew Roslik

06/05 2015

v1.1.0p.1

1.1.0.0-patch1

Database Helpers (Magento)

  Sources   Download

MIT

The Requires

 

by Andrew Roslik

03/05 2015

v1.0.1

1.0.1.0

Database Helpers (Magento)

  Sources   Download

MIT

The Requires

 

by Andrew Roslik

03/05 2015

v1.0.0

1.0.0.0

Database Helpers (Magento)

  Sources   Download

MIT

The Requires

 

by Andrew Roslik