Forums / General Questions / 1016 Can't open file: 'zen_products.MYI'. (errno: 145)

1016 Can't open file: 'zen_products.MYI'. (errno: 145)

Locked

Views: 2,417

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Jun 2006, 2:10 PM
#1
cadfc avatar

cadfc

New Zenner

Join Date:
Jan 2006
Location:
London, United Kingdom
Posts:
19
Plugin Contributions:
0

1016 Can't open file: 'zen_products.MYI'. (errno: 145)

I got an error message today just after I edited a product.

1030 Got error 22 from table handler
in:
[update zen_products set products_quantity = '0', products_type = '1', products_model = '081-5103/020', products_price = '0', products_date_available = null, products_weight = '0', products_status = '1', products_virtual = '0', products_tax_class_id = '1', manufacturers_id = '0', products_quantity_order_min = '1', products_quantity_order_units = '1', products_priced_by_attribute = '0', product_is_free = '0', product_is_call = '0', products_quantity_mixed = '1', product_is_always_free_shipping = '0', products_qty_box_status = '1', products_quantity_order_max = '1000', products_sort_order = '100', products_discount_type = '0', products_discount_type_from = '0', products_price_sorter = '0.0000', products_image = '080/RJ45-Black-Unbooted-Standard.jpg', products_last_modified = now(), master_categories_id = '71' where products_id = '181']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I went back to page to double-check product information, everything seemed fine. I think my MYSQL has crashed for some reasons.

When I checked home page on my localhost. Got error message which stated :

1016 Can't open file: 'zen_products.MYI'. (errno: 145)
in:
[select distinct m.manufacturers_id as id, m.manufacturers_name as name from zen_products p, zen_products_to_categories p2c, zen_manufacturers m where p.products_status = 1 and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '0' order by m.manufacturers_name]

I've searched similar errors in other forums but it didn't help me
http://www.zen-cart.com/forum/showthread.php?t=36650&highlight=1016+error
http://www.zen-cart.com/forum/showthread.php?t=15884&highlight=1016+error

I tried to fix the problem by use PHPMyAdmin.
Scrolled down to open zen_products. I got error message,
"#1016 - Can't open file: 'zen_products.MYI'. (errno: 145)" So I can't repair the table because clicking "Operations" returned same error. PHPMyAdmin removed the link from "Empty" function, so I couldn't run it either.

If I logged in admin, got error message:
1016 Can't open file: 'zen_products.MYI'. (errno: 145)
in:
[select count(*) as count from zen_products where products_status = '1']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Other informations
zencart version: 1.3.0.1
Apache: Apache/2.0.47 (Win32)
mysql: MySQL 4.0.14-nt
PHP: 4.3.3RC5-dev (Zend: 1.3.0)
Host: Localhost

I've created backup but I added alot of products today and hope to revive them! What shall I do?

29 Jun 2006, 3:11 PM
#2
cadfc avatar

cadfc

New Zenner

Join Date:
Jan 2006
Location:
London, United Kingdom
Posts:
19
Plugin Contributions:
0

Re: 1016 Can't open file: 'zen_products.MYI'. (errno: 145)

Finally I've solved the problem, if you couldn't use PHPMyAdmin to repair the table then use shell command to launch mysql prompt instead.

Instructions for anyone who might have similiar problems in the future.

  1. mysql -u <your username> -p<your password>
  2. use zencart;
  3. check table zen_products; (or any other affected tables)
  4. repair table zen_products;

I've logged in admin to check if everything was ok. only problem was mysql prompt's repair function has removed a product (affected row) from zen_products.

For more information see http://www.modwest.com/help/kb6-230.html

Phew!

30 Jun 2006, 3:56 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 1016 Can't open file: 'zen_products.MYI'. (errno: 145)

Thanks very much for the update on this and how you fixed it ...

That is a rather unusual error to get on the products table ...

Usually this can happen when the MySQL server crashes, but it will normally occure to the more volitle tables such as sessions or whos_online and a Repair usually will take care of the problem ...

Check with your hosting site to see if they know what might have happened ... keep good backups ... and make sure this is a once in a blue moon occurance ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!