php - Not able to re-index Magento Catalog search Index using shell command -
php - Not able to re-index Magento Catalog search Index using shell command -
i have magento installation has 25,000+ products. when im trying re-index using next shell command
php -f indexer.php -- -reindex catalogsearch_fulltext
the next error appearing when run mentioned command in putty
catalog search index index process unknown error: exception 'pdoexception' message 'sqlstate[08s01]: communication link failure: 1153 got packet bigger 'max_allowed_packet' bytes' in /var/www/html/lib/zend/db/statement/pdo.php:228
im not able load site since index wrong. how can re-index catalog search?
that's mysql error not in magento. have big tables. need alter value max_allowed_packet
in mysql configuration. can alter value in my.ini file in server max_allowed_packet=16m
reatart mysql server (if linux srever)
service mysqld start
or
sudo /etc/init.d/mysql start
, or shell command (for need logged in mysql server)
set global max_allowed_packet=16777216;
to see value,
show variables 'max_allowed_packet'
for more info read this
php shell magento
Comments
Post a Comment