Bash Script: Create MySQL Database & User with Optional Password

I have been using DigitalOcean for my personal projects. And one repeated things that I had to do is the creation of MySQL database & user. I know I could have used some CPanel like GUIs and even some of them came to my mind like VestaCP, Ajenti, ServerPilot, etc. But all come with sort …

Read moreBash Script: Create MySQL Database & User with Optional Password

MySQL Issue: Table storage engine for ‘catalog_product_relation’ doesn’t have this option

When you export the Magento database dump from MySQL 5.5.x and try to import in MySQL 5.7.x, You are likely to face an error: ERROR 1031 (HY000) at line 3002: Table storage engine for ‘catalog_product_relation’ doesn’t have this option PROBLEM This is probably due to the table option that you have in your CREATE TABLE …

Read moreMySQL Issue: Table storage engine for ‘catalog_product_relation’ doesn’t have this option

How to set product attribute values to take values from default store?

Have you ever ticked a ‘Use Default Value’ checkbox for Price (in store view level) and noticed the changes in the database? If you tick the ‘Use Default Value’ checkbox for any product attribute (say Price) in store view level and save it. This will delete the related row in the database for that attribute, …

Read moreHow to set product attribute values to take values from default store?

How to find the size/rows of Magento database & tables?

Introduction Magento is a giant e-commerce application having more than 300 tables. It uses an EAV model concept and provides different complex features which make the database huge. Sometimes you may wonder what’s the database size of your Magento database or individual tables so that you can work on some optimization task or freeing some …

Read moreHow to find the size/rows of Magento database & tables?

Getting super attributes info using raw SQL in Magento

Introduction While creating a configurable product, you need to create an attribute(s) which will be used as a select option(s) for the customer(For Example Color, Size, etc.). These kinda attributes are called super attributes or configurable attributes. In this article, we will be discussing how to get different info about super attributes using raw SQL. …

Read moreGetting super attributes info using raw SQL in Magento