How do i backup my mysql database?

Discussion in 'MySQL' started by greatness008, Nov 18, 2007.

  1. #1
    Is that all i need to do to backup my whole site??plz help. thx.
     
    greatness008, Nov 18, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    You should use phhmyadmin to backup your database.

    If you need help with that reply.
     
    Colbyt, Nov 18, 2007 IP
  3. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #3
    cpanel -> back ups
     
    login, Nov 18, 2007 IP
  4. bestsoftworks

    bestsoftworks Peon

    Messages:
    257
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can also use the EXPORT feature within phpadmin. That will dump the tables and data. Not a bad idea to do this at least once so you can rebuilt it if necessary.

    David
     
    bestsoftworks, Nov 18, 2007 IP
  5. greatness008

    greatness008 Well-Known Member

    Messages:
    1,099
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    145
    #5
    Can u please explain step by step? It would be appreciated thx. kinda a newb :D
     
    greatness008, Nov 19, 2007 IP
  6. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #6
    If you have cPanel the easiest way to do this is to hit the backups icon. Once you get to that page it is self explanatory and very simple to do.
     
    kentuckyslone, Nov 19, 2007 IP
  7. conceptsti

    conceptsti Active Member

    Messages:
    299
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #7
    sorry I know may seem stupid but i don't know how to access cpanel

    my host is 1and1
     
    conceptsti, Nov 19, 2007 IP
  8. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #8
    If you dont know how to access cPanel then your host probably does not provide it. cPanel is a website control panel where you access your files. If you have it you will access it at

    yourwebsiteurl/cpanel/
     
    kentuckyslone, Nov 19, 2007 IP
  9. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #9
    You don't have a cPanel. You have an abomination known as the half and half control panel.

    If you have phpmyadmin, I will try to post a step by step for you.

    Please post back or PM me.
     
    Colbyt, Nov 19, 2007 IP
  10. msaqibansari

    msaqibansari Peon

    Messages:
    84
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    use phpmyadmin to backup database or sqlyog desktop application for database backup
     
    msaqibansari, Nov 19, 2007 IP
  11. greatness008

    greatness008 Well-Known Member

    Messages:
    1,099
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    145
    #11
    i have phpmyadmin, plz post step by step. thx.
     
    greatness008, Nov 19, 2007 IP
  12. clookid

    clookid Notable Member

    Messages:
    1,042
    Likes Received:
    162
    Best Answers:
    0
    Trophy Points:
    225
    #12
    How to Backup a MySQL Database in phpMyAdmin

    1. Open phpMyAdmin.
    2. Login.
    3. Select the database on the right-hand menu that you wish to backup.
    4. On the menu listed at the top of the page, select "Export".
    5. Scroll down to the bottom of the page.
    6. Click on the tick box next to "Save as file".
    7. Click "Go".

    How to Restore a Database in phpMyAdmin

    1. Create a database.
    2. Open phpMyAdmin.
    3. Login.
    4. Select the database on the right-hand menu that you wish to restore the old dump to.
    5. On the menu listed at the top of the page, select "Import".
    6. Click "Browse..." and locate the dump on your computer.
    8. Click "Go".
     
    clookid, Nov 19, 2007 IP
    kentuckyslone and Nathy like this.
  13. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #13
    Charles has pretty much posted the correct steps.

    I usually save the file as a zip file. That is just a box you check.
     
    Colbyt, Nov 20, 2007 IP
  14. greatness008

    greatness008 Well-Known Member

    Messages:
    1,099
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    145
    #14
    I will try this over the weekend. Thx for caring enough to post step by step instructions. You have been a great help!
     
    greatness008, Nov 20, 2007 IP
  15. clookid

    clookid Notable Member

    Messages:
    1,042
    Likes Received:
    162
    Best Answers:
    0
    Trophy Points:
    225
    #15
    Any luck? :p
     
    clookid, Nov 30, 2007 IP
  16. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #16
    well there are couple of ways u can do tht, if u have SSH access and you want to backup your site enter this command in SSH

    /scripts/pkgacct siteusername

    the above script will create a zip file of ur whole site.

    and secondly if u want to backup your database enter this command in SSH

    mysqldump -udbusername -pdbpassword --dbname >filename.sql

    If you don't have SSH access then all of the above information is of no benefit, better would be to ask your web host to create a backup of your site.
     
    Pathan, Nov 30, 2007 IP
  17. blowingideas

    blowingideas Peon

    Messages:
    642
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #17
    the best way to setup a backup for a mysql db is through cronjob using the mysqldump command.
    you can even set it up to run daily, it's up to you.
     
    blowingideas, Dec 3, 2007 IP