SET general_log = 1;
All posts by Pramod T P
mysql query last 24 hours
SELECT * FROM news WHERE date < 24 hours SELECT * FROM news WHERE date >= now() - INTERVAL 1 DAY;
To enable the profiler using type html and create a flagfile:
php bin/magento dev:profiler:enable html
Magento 2 “Invalid Form Key. Please refresh the page”
To fix this issue you need to increase the value of max_input_vars in php.ini file. By default, this value is set to 1000. You should set it to 5000 or 10000.
# php -r “phpinfo();” | grep max_input_vars
max_input_vars => 1000 => 1000
Incrase the value to 5000 in php.ini file
mysql set default value for column
ALTER TABLE table_name ALTER COLUMN column_name SET DEFAULT 'VALUE';
git clone only one branch
Run the following command
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
There are unfinished transactions remaining.
The following command saved my day.
sudo yum-complete-transaction --cleanup-only
ERROR 1292 (22007): Incorrect datetime value: ‘0000-00-00 00:00:00’ for column ‘customer_dob’ at row 19553
SET SQL_MODE='ALLOW_INVALID_DATES'
Done the above configuration change and that solved my problem temporarly.
magento 2 command reindex options
Run the following commands to list reindex options
magento 2 command reindex options
install algolia magento 2
Run the following commands
composer require algolia/algoliasearch-magento-2
php bin/magento module:enable Algolia_AlgoliaSearch
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy