Error Static analysis:

1 error was found during analysis.

Unrecognized statement type. (near "LOCK" at position 58) SQL query:

-- -- Dumping data for table mgw2_inventory_stock_1 -- LOCK TABLES mgw2_inventory_stock_1 WRITE

MySQL said: Documentation

1146 - Table 'pinnacle_mage476.mgw2_inventory_stock_1' doesn't exist

Please help me fix it

1 Answer 1


You are facing this issue because this is actually not a table. It is a view.

So before rollback when you clear all existing tables, execute below query as well.

DROP VIEW IF EXISTS mgw2_inventory_stock_1;

This should work !!!

  • But its not working Feb 13, 2019 at 9:57
  • Ok in my case, this resolved my issue. Just make sure query was executed. If not try with 'DROP VIEW mgw2_inventory_stock_1;' in mysql panel. Check if that works.
    – Yash Shah
    Feb 13, 2019 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.