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!

export database

Discussion in 'General Discussion' started by marketman, Dec 5, 2006.

  1. marketman

    marketman Registered

    Dec 5, 2006
    Likes Received:
    Trophy Points:
    I have tried to export my database as I am changing hosts, but all i get is

    Line: 189
    Char: 9
    Errot: object required
    Code: 0

    when I do the following

    To export a MySQL database follow these steps:
    1. Log into your cPanel.
    2. Click on MySQL Databases
    3. Click on phpMyAdmin at the bottom of the page.
    4. If you have multiple databases click on the database you want in the left hand side then click export, if you only have one database just click on export.
    5. On the export page you do not have to change anything just click the button to accept.
    6. The database should be displayed in SQL queries, you copy that text and it is your database backup.
    7. You can run that text as an SQL query on any SQL server and it will recreate your database.
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    May 20, 2003
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Try clicking the link inside the backups section of cPanel for the database you want to download. That should work fine with an average size DB. Or do a full system backup. That will backup all databases as well.

    Those instructions IMO, leave out a step or two.

    Open PHPAdmin click on name of DB on left.
    On right side of page click Export.
    In the Export box you see on right frame click select all.
    to the right of that click Add Drop Table.
    Down below that click Complete Inserts.
    Down below that click save as file.
    Give it a name, uncheck remember template, click your choice of compression and hit go.

    Or back it up the best way via SSH.

    mysqldump --opt -Q -u accountname_accountname -p accountname_databasename > /home/accountname/path/to/save/directory/

    One of those should get you what you seek.
    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