Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Magento 2 Development Cookbook

You're reading from   Magento 2 Development Cookbook Over 60 recipes that will tailor and customize your experience with Magento 2

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785882197
Length 304 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Bart Delvaux Bart Delvaux
Author Profile Icon Bart Delvaux
Bart Delvaux
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Magento 2 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Upgrading from Magento 1 FREE CHAPTER 2. Working with Products 3. Theming 4. Creating a Module 5. Databases and Modules 6. Magento Backend 7. Event Handlers and Cronjobs 8. Creating a Shipping Module 9. Creating a Product Slider Widget 10. Performance Optimization 11. Debugging and Unit Testing Index

Repairing the database


Sometimes, it can happen that your Magento database is broken or corrupt. This can be caused by various reasons such as a hack or a server crash. When the database is broken, everyone wants to repair it as quickly as possible.

Common examples of a corrupt database are missing tables or columns after running an unsaved query, or missing relations after an import of a dump without the relations.

Magento has a database repair tool that compares database A with database B and this tool can fix the missing structures between them.

In this recipe, we will make our database corrupt and we will repair it with the repair tool.

Getting ready

To prepare yourselves, download the database repair tool from the Magento site at http://www.magentocommerce.com and place the PHP file in your webroot.

How to do it...

The next steps show you how you can break your database and how to fix it using the database repair tool:

  1. Create a backup of your existing Magento 2 database.

  2. Create a new empty database...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images