+ Reply to Thread
Results 1 to 6 of 6

Thread: MYSQL Error

  1. #1
    icetray is offline x10Hosting Member icetray is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    38

    MYSQL Error

    Well, heres the error (somewhat) that I'm getting
    Fatal error: mysql error: [1: Can't create/write to file '/var/tmp/#sql_9469_0.MYI' (Errcode: 2] (or any other errors related to a .MYI file)

    The help and support of Zen Cart provides this solution;
    If you are the server/host administrator and can control disk configurations/permissions on your server, either reconfigure MySQL to use another location with more space available; or add more space to the indicated volume/mount-point (in the example above, that would be /var); or relax security surrounding the /var/tmp folder for the MySQL user.
    If you are not the server administrator, you need to report the error to your host/web-company so that they can resolve the situation for you. This is a good time to remind you to do regular backups... You should be sure to double-check all your data after encountering such an error, and having a good backup on hand could save you tons of trouble.

    So I'm wondering now. Is it possible for me to resolve this myself? Or am I basically out of options? I'm not sure how the MySQL works with x10, I'm not sure if I'm able to allocate more space or not.

    In addition, this was a provided solution by an individual user who stated Zen Cart's solution is incorrect;

    It is likely that your /usr/tmpDSK is corrupted. You should stop all processes that have files open on /tmp such as MySQL and other applications using:

    /usr/sbin/lsof /tmp

    Run the following commands (in that order):

    /bin/umount -l /tmp
    /bin/umount -l /var/tmp
    /bin/rm -fv /usr/tmpDSK

    /scripts/securetmp
    This should create a new /tmp partition for you. That's all
    Is there anyway I can go about this? Or is it admin controlled? I don't normally mess in this area of my server, this is the first time I've had problems in this area, so I'm extremely confused.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MYSQL Error

    It's probably a transient condition. If you're still getting the error in a day or two, you'll need to open a support ticket.

    Zen Cart's explanation is technically correct and it agrees with the MySQL newsletter article "Error 28, how to avoid it." The error code is the system error code ENOSPC and is not specific to MySQL. It's possible that some form disk corruption is causing the amount of free space to be misreported, it's also possible (and more likely) that the partition just doesn't have enough space.

    Some more information: a ".myi" file holds table indices. The filename and location indicates it's the index for a temporary table resulting from a SELECT statement that's exceeded the size of the MySQL tmp_table_size variable. On Lotus, tmp_table_size is currently 32MiB, which suggests a runaway query from Zen Cart. It's also possible that the table the SELECT is querying is corrupt, causing a runaway query, in which case you could try repairing your tables from within phpMyAdmin. Or maybe it's just a big query.
    Last edited by misson; 08-16-2009 at 08:34 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    icetray is offline x10Hosting Member icetray is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    38

    Re: MYSQL Error

    Alright, thanks for replying.

    Lets say hypothetically, I'd want to resort to checking the runaway query theory. I've heard of the Error 28, and some people validated the problem existing by refreshing the directory, and within a day or two (or three, give or take a few) the problem returned, which gave that specific user the knowledge that it was going to be a reoccuring problem. However, I don't seem to have permission to reset, basically an access denied, lack of privilage.

    Although, I should have mentioned mine specifically says
    1 Can't create/write to file '/tmp/#sql_44db_0.MYI' (Errcode: 30)
    in:
    [begin massive directory list.]
    I'm unsure if error code 30, is the same in relevance to 28.

  4. #4
    lhyman's Avatar
    lhyman is offline x10 Sophmore lhyman is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    198

    Re: MYSQL Error

    What server are you on? My zencart works fine. Another user was complaining about some php errors about the tmp dir and mysql. Maybe you are both on the same server and it has a mysql problem... If you submit a support ticket and get the situation resolved, could you please post the results here, thanks
    Edit:
    see this post, Brandon just fixed the problem

    http://forums.x10hosting.com/free-ho...rite-file.html

    Way to go Brandon !!!!
    Last edited by lhyman; 08-16-2009 at 10:34 PM. Reason: Automerged Doublepost
    My Name is Larry Hyman from Montreal. I fix computers on site, see my web site for more details:

    http://hyman.sytes.net

  5. #5
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MYSQL Error

    Quote Originally Posted by icetray View Post
    Although, I should have mentioned mine specifically says
    1 Can't create/write to file '/tmp/#sql_44db_0.MYI' (Errcode: 30)
    in:
    I'm unsure if error code 30, is the same in relevance to 28.
    That makes a big difference. System error code 30 is EROFS, read-only file system. Nothing to do with available space. System error codes are defined in errno.h, which you can find online or on any Unix flavor. The meaning of the error numbers might vary from OS to OS, but the lower error numbers will be fairly consistent.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  6. #6
    icetray is offline x10Hosting Member icetray is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    38

    Re: MYSQL Error

    Well, big thanks to Brandon, haha. Seems the problem resolution was out of my hands anyway, problem is gone now though.
    Thanks for pointing that out, lhyman.

    And thanks misson for the help you provided.

+ Reply to Thread

Similar Threads

  1. MySQL error
    By killers_clan in forum Free Hosting
    Replies: 4
    Last Post: 10-01-2008, 04:33 PM
  2. Same mySQL error as "killers_clan"
    By banthewo in forum Free Hosting
    Replies: 1
    Last Post: 10-01-2008, 03:46 PM
  3. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  4. MYSQL error
    By slayer2746 in forum Free Hosting
    Replies: 3
    Last Post: 12-07-2007, 01:02 PM
  5. mySQL error: Too many Connection
    By mumbhaki in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 11-22-2007, 02:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers