The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    36
    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:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: 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
    
     
Loading...

Share This Page