Tool to export Database

Discussion in 'MySQL' started by daedal, Jun 1, 2008.

  1. #1
    I am in the process of moving a site from another host, but having problems moving the database.

    The old host doesn't use php myadmin or other admin tools, their built in one keeps timing out when I try and export the database.

    Is there any tool, program or script that allows me to export a database so I can then import it to my new host.

    Any help will be appreciated.
     
    daedal, Jun 1, 2008 IP
  2. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #2
    can't you ask your present host to supply you with database backups?
     
    sawz, Jun 1, 2008 IP
    CourageTheCowardlyDog likes this.
  3. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #3
    The easiest way is to ask your host as sawz said earlier.

    If you have shell access then you can use MySQL's command line utility mysqldump.

    If your host allow you to connect remotely then you can use any of the MySQL GUIs.

    Or you can install your own copy of phpmyadmin and increase the execution time.
     
    mwasif, Jun 1, 2008 IP
  4. hkarakis

    hkarakis Active Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #4
    If you want to retrieve information from a database for backup or move its contents to another database, the program mysqldump proves to be quite convenient. It is installed at all login-hosts and can be used to generate sql-data from databases and tables.

    To retrieve all information from a database:

    mysqldump -u andersl_user -p andersl_database > databasefile.sql
             
    Code (markup):
     
    hkarakis, Jun 1, 2008 IP
  5. daedal

    daedal Peon

    Messages:
    171
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    My current host is being awkward thats why I am changing to a more reliable host. I still have a ticket open with them and on average it takes them days to reply, so I would rather just do it myself if possible.

    I don't have shell access so that option is out of the way.

    I will give one of the MySQL GUI tools and see if I can do it that way
     
    daedal, Jun 1, 2008 IP
  6. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #6
    Setting up phpMyAdmin is very easy. You can try that too.
     
    mwasif, Jun 1, 2008 IP
  7. centsi

    centsi Active Member

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #7
    It's possible, though unlikely, that your old host allows remote access to the MySQL server. If so, you could run the mysqldump command from another mysql client to get the data off.
     
    centsi, Jun 3, 2008 IP