Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mysqldump error in VPS

Discussion in 'General Discussion' started by jolly, Oct 10, 2006.

  1. jolly

    jolly Member

    Joined:
    Dec 5, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    151
    I am getting error whenever I try to dump mysql on VPS

    [root@99 init.d]# mysqldump -u root -p megablog_mega > megablog_blog.sql
    > Enter password:
    > mysqldump: Got error: 1017: Can't find file:
    > './megablog_mega/wp_63_post2cat.frm' (errno: 24) when using LOCK TABLES

    All resources on VPS are set to unlimited.
    Thanks
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    Try something like this and throw it in a gz if desired.

    /usr/bin/mysqldump --opt -Q user | gzip > /home/destination/filename.gz
     
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    320
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    This problem it's because database it's very large on tables, and --lock can't open files that it needs.

    try mysqldump without --lock-tables

    Code:
    mysqldump --lock-tables=false --add-drop-table --add-locks --create-options --disable-keys --extended-insert  --quick --set-charset [database] > [database].sql
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice