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!

want to restore an account, files will not populate Mysql tables

Discussion in 'General Discussion' started by sleuth1, Sep 24, 2003.

  1. sleuth1

    sleuth1 Well-Known Member

    Mar 16, 2003
    Likes Received:
    Trophy Points:
    I have a full back as a tar file sitting on my server , I have tried to restore the full site including the DBs , the info is there it just will not populate or create the tables. it is an xmb1 DB, already created in cpanel Can any one help with this, the account user deleted there forum DB and I have tried repeatedlty to restore. there is no sql file as such just the unzipped files containing all the info that should populate the xmb1 DB but it refuses to do this, no errors just no tables, any advice,. thanks.

    Being trying to restore as a cpanel full backup restore from my own computer, no joy. Support Ticket Number:
  2. mickeymouse

    mickeymouse Well-Known Member

    Sep 16, 2003
    Likes Received:
    Trophy Points:
    Dear sleuth1,

    You can use the mysqlimport tool for creating database(with files). Login in to mysql prompt, use mysqlimport for specifying the source of the file. If you do not have the database structure in those files, there is no way for you to create a database from just the data. You have to manually look in to the data and create the database yourself.

  3. neptho

    neptho Registered

    Aug 2, 2006
    Likes Received:
    Trophy Points:
    Ok, I know it's a faux-paus bumping a three year dead thread, but:

    I'm having exactly the same problem. Within the tarball is mysql.sql and mysql/*.sql, which are for the tables created/etc for this user.

    It restores/cpmove from this fine, and even creates the database, but it doesn't populate the tables. Nothing. DB has got zed, zero, zilch, nada, null.

    Being that I had to import each subaccount manually, I'm quite annoyed to find that this format doesn't have the db name encoded - so I can't just pipe it to mysql.

    I've looked and I'm not out of space, anywhere, and don't see any strange mysql or console messages when importing.

    Any ideas?
  4. brianoz

    brianoz Well-Known Member

    Mar 13, 2004
    Likes Received:
    Trophy Points:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I'd re-run the import by hand and look for a failure message, that is the most effective way to find out what's going on.

    Just guessing here - it's possible that the dump needed "-Q" to mysqldump and that wasn't used - in other words, some of the table names were reserved words. Just a guess - if this is the case you may be able to solve the problem by appropriately quoting table and/or column names.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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