Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    36
    Plugin Contributions
    0

    Default Incorrect key file for table '/tmp/#sql_767b_0.MYI'; try to repair it

    When i go into shop admin and the to Customers > Orders, I'm getting this error:

    126 Incorrect key file for table '/tmp/#sql_767b_0.MYI'; try to repair it
    in:
    [select o.orders_id, o.customers_id, o.customers_name, o.payment_method, o.shipping_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total, o.customers_company, o.customers_email_address, o.customers_street_address, o.delivery_company, o.delivery_name, o.delivery_street_address, o.billing_company, o.billing_name, o.billing_street_address, o.payment_module_code, o.shipping_module_code, o.ip_address from zen_orders o left join zen_orders_total ot on (o.orders_id = ot.orders_id), zen_orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and ot.class = 'ot_total' order by o.orders_id DESC limit 0, 20]


    I'm assuming that this particular script is creating a temp table so I have no way to go in and repair it. This table has 52,000 records in it so could that be the problem?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Incorrect key file for table '/tmp/#sql_767b_0.MYI'; try to repair it

    You might want to backup your database then try a repair on the orders and orders_total and orders_status tables ...
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Feb 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Incorrect key file for table '/tmp/#sql_767b_0.MYI'; try to repair it

    unfortunately that didn't do the trick. I've repaired all tables beginning with "order" as well as the customers table. Same error.

    Any other thoughts?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Incorrect key file for table '/tmp/#sql_767b_0.MYI'; try to repair it

    Quote Originally Posted by hollygds View Post
    unfortunately that didn't do the trick. I've repaired all tables beginning with "order" as well as the customers table. Same error.

    Any other thoughts?
    The tables affected by that query on your server are:
    - zen_orders
    - zen_orders_total
    - zen_orders_status

    I would suggest these approaches:
    - ensure that the /tmp folder and drive have no quota/space restrictions, and that your mysql process has sufficient rights to create its temporary files there without limitations (talk to your hosting company)
    - repair those tables
    - drop and rebuild all the indexes on those tables
    - worst case, backup what you have now and restore from a working copy
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. "1034 Incorrect key file for table 'zen_customers'; try to repair it
    By albert7 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 31 Aug 2011, 07:26 PM
  2. Replies: 2
    Last Post: 25 Jul 2011, 06:42 AM
  3. 1034 Incorrect key file for table 'customers';
    By AmazingGraze in forum General Questions
    Replies: 1
    Last Post: 27 Jan 2011, 01:58 AM
  4. ** BIG PROBLEM! ** 1034 Incorrect key file for table
    By RobertKramers in forum General Questions
    Replies: 5
    Last Post: 28 Mar 2009, 12:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR