简体   繁体   中英

General error: 1205 Lock wait timeout exceeded; try restarting transaction error on Magento 2.1.2

I have problem while adding a new product in Magento 2.1.2 and I don't know how to solve it I am new in Magento. When I am adding the products it returns this error

SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction, query was: INSERT INTO `catalog_product_entity_varchar`(`entity_id`,`attribute_id`,`value`,`store_id`) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE `entity_id` = VALUES(`entity_id`), `attribute_id` = VALUES(`attribute_id`), `value` = VALUES(`value`), `store_id` = VALUES(`store_id`)

changed the

 innodb_lock_wait_timeout=120  
value in mysql config file but it is not solved my problem

any one have any other solution

check your mysql status in phpmyadmin or in mysql commandline with SHOW FULL PROCESSLIST . You may find the query that is locking a table you want to write into.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM