Results 1 to 5 of 5

Thread: MySQL Error No : 1

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    4
    cPanel/WHM Access Level

    Website Owner

    Default MySQL Error No : 1

    Hello all!

    Anyone can help me in my problem??? From last few days i am getting this error...


    Could not make the Query.


    SELECT cat.*, f.*, fp.*, t.*, p.*, u.username , th.th_folder FROM aef_categories cat LEFT JOIN aef_forums f ON (cat.cid = f.cat_id) LEFT JOIN aef_forumpermissions fp ON (fp.fpfid = f.fid AND fp.fpugid = -1) LEFT JOIN aef_posts p ON (p.post_fid = f.fid AND p.pid = f.f_last_pid) LEFT JOIN aef_topics t ON (p.post_tid = t.tid) LEFT JOIN aef_users u ON (p.poster_id = u.id) LEFT JOIN aef_themes th ON (th.thid = f.id_skin) ORDER BY cat.order ASC , f.par_board_id ASC , f.forum_order ASC

    MySQL Error No : 1

    MySQL Error : Can't create/write to file '/tmp/#sql_e60_0.MYI' (Errcode: 30)


    Try to search for this but cant get any solution. Please someone help me to solve this.. Thanking you in advance for any further help.

  2. #2
    Registered User
    Join Date
    Apr 2012
    Posts
    4
    cPanel/WHM Access Level

    Website Owner

    Default Re: MySQL Error No : 1

    hey all,,

    still there is no responce. please help me to solve this unwanted issue...

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: MySQL Error No : 1

    What online posts did you find? This one has a good discussion:

    Can't create/write to file '/tmp/#sql_b9c_0.MYI' (Errcode: 30) | Virtualmin

    The issue is /tmp can't be written to. It is likely either full, has the wrong file permissions or is mounted noexec, which can be discovered by checking it:

    Code:
    df -kh /tmp
    ls -ld /tmp
    mount | grep tmp
    grep tmp /etc/fstab
    Please post the output for all 4 commands.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Registered User
    Join Date
    Mar 2012
    Posts
    3
    cPanel/WHM Access Level

    Root Administrator

    Default Re: MySQL Error No : 1

    Similar problem here (Can't create/write to file '/tmp/#sql_497_0.MYI' (Errcode: 28))
    This prablem occured suddenly in a server that waw working correctly for months.
    phpmyadmin also gives the following error: "Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly."

    Here is the output of the above commands proposed by Tristran.

    root@starlight [/]# df -kh /tmp
    Filesystem Size Used Avail Use% Mounted on
    /usr/tmpDSK 607M 174M 403M 31% /tmp
    root@starlight [/]# ls -ld /tmp
    drwxrwxrwt 4 root root 2813952 Sep 30 10:10 /tmp/
    root@starlight [/]# mount | grep tmp
    tmpfs on /dev/shm type tmpfs (rw)
    /usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
    /tmp on /var/tmp type none (rw,noexec,nosuid,bind)
    root@starlight [/]# grep tmp /etc/fstab
    tmpfs /dev/shm tmpfs defaults 0 0
    /usr/tmpDSK /tmp ext3 defaults,noauto 0 0

    any help will be greatly appreciated.
    Last edited by nikosv; 09-30-2012 at 10:25 AM.

  5. #5
    Registered User
    Join Date
    Mar 2012
    Posts
    3
    cPanel/WHM Access Level

    Root Administrator

    Default Re: MySQL Error No : 1

    Fixed my problem recreating /tmp doing the following:

    stop everything from going to /tmp:

    # /usr/sbin/lsof /tmp

    Run the following commands (in that specific order).

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

    and then to create the partition:

    # /scripts/securetmp

Similar Threads

  1. High load: mysql --log-error=/var/lib/mysql/...
    By amrkps in forum Database Discussions
    Replies: 4
    Last Post: 07-03-2012, 08:27 AM
  2. Replies: 0
    Last Post: 01-17-2011, 12:42 PM
  3. Replies: 2
    Last Post: 06-22-2009, 08:30 AM
  4. Mysql Failed error after setting up Remote MySQL server
    By ReB in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 03-28-2007, 02:47 AM
  5. Can't get mysql to work - Getting mysql.sock error (but a unique one)
    By noimad1 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-21-2006, 02:04 AM