how do we take a backup of mysql database

Discussion in 'MySQL' started by arunsuriindia, Mar 25, 2007.

  1. #1
    i want to know the software used

    and the process also
     
    arunsuriindia, Mar 25, 2007 IP
  2. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your host should provide some MySQL interface (PhpMyAdmin or similar).

    From there you will be able to dump or export your database.

    Some hosts also provide some automatic or on-demand backup server side. Ask your hosting company
     
    Monty, Mar 25, 2007 IP
  3. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    the databse is in my desktop
    i want to upload it
     
    arunsuriindia, Mar 25, 2007 IP
  4. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you have it as an SQL file or do you need first to dump it from your local MySQL installation ?
    What MySQL manager is installed on your remote server ?

    Please provide some informations if you want people to help you.
     
    Monty, Mar 25, 2007 IP
  5. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i don`t know any mysql manager
    i dowloaded my sql and then mysql query browser
     
    arunsuriindia, Mar 25, 2007 IP
  6. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    u are an expert do u know how to upload data from a html table to mysql
     
    arunsuriindia, Mar 25, 2007 IP
  7. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    also load data infile pasth on a webserver when we host
     
    arunsuriindia, Mar 25, 2007 IP
  8. D'Godown

    D'Godown Well-Known Member

    Messages:
    1,093
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #8
    there are many ways.
    SSH into the box and write this
    mysql -u dbusername -p dbname < backupfile.sql

    Or use a windows based mysql client like mysqlfront or mysqlyog.

    Or use phpmyadmin, and use imort db feature, it will make it work.
     
    D'Godown, Mar 25, 2007 IP
  9. icare

    icare Peon

    Messages:
    714
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hello

    If you are using cPanel then go to
    MySQL and then go to PHPMYADMIN (look at the bottom) and then select the database you have and hit export.

    There hit select ALL and don't forget to click save file.

    Then hitting "Go" will give you file you want. Save that file on your computer.

    Thats it.
     
    icare, Mar 25, 2007 IP
  10. amitpatel

    amitpatel Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    HY ,

    I am amit U can back up your databse using the CSV(comm sepreted values)
    files.
    You can converte your output in any type of file extension like .txt ,.pdf etc.

    Even you can convert your hole database in any file extension using CSV.
     
    amitpatel, Mar 25, 2007 IP
  11. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #11
    mysql -u dbusername -p dbname < backupfile.sql is the prefered way - because of speed. NaviCat can also take and restore backups. Otherwise, just create a SQL script as a backup, then drop and recreate tables and data with SQL Script :)
     
    ccoonen, Mar 25, 2007 IP
  12. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    thanx for u r help it was nice to be under your guidance
     
    arunsuriindia, Mar 31, 2007 IP
  13. porsche2006

    porsche2006 Banned

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Helped me out too! THANKS!
     
    porsche2006, Apr 3, 2007 IP