Does anybody know any good software for backing up MySQL databases?

Discussion in 'General Chat' started by amazingtrade, Aug 27, 2004.

  1. amazingtrade

    amazingtrade Mad Madchestoh fan

    Joined:
    Jun 19, 2003
    Messages:
    5,139
    Likes Received:
    0
    Location:
    Manchester
    My database should be backed up but MySQL control centre does not allow you do this. Does anybody know of any free software which would allow a good backup/restore option? I know such a program exists but can't remember the name.

    After the recent 34SP.COM I need to back up my forum, gig listings and band profiles as the only place there are stored is a database on their servers.

    Thanks.
     
    amazingtrade, Aug 27, 2004
    #1
  2. amazingtrade

    BL21DE3 aka 'Lucky'

    Joined:
    Nov 13, 2003
    Messages:
    422
    Likes Received:
    0
    Location:
    Cambridge, UK
    BL21DE3, Aug 27, 2004
    #2
  3. amazingtrade

    sideshowbob Trisha

    Joined:
    Jun 20, 2003
    Messages:
    3,092
    Likes Received:
    0
    Location:
    London
    Just run a batch file to xcopy or cp the data files to a separate location periodically. It's an easy job to reinstate the data from a copy, have a look at the documentation at www.mysql.com.

    Alternatively, you can use the mysqldump program that is installed with mysql, on a windows box you need something like:

    c:\mysql\bin\mysqldump --opt -u username --password=password databasename > c:\somebackuplocation\backup.sql

    (Obviously, change the paths appropriately.) Stick that in a batch file and either schedule it or run it manually every so often. On a *nix box, the syntax is exactly the same apart from the path specification, which is more like:

    /usr/bin/mysql/bin/mysqldump --opt -u username --password=password databasename > /home/foo/mysqlbackup/backup.sql

    Again, read the mysqldump docs for the procedure to restore.

    -- Ian
     
    sideshowbob, Aug 27, 2004
    #3
  4. amazingtrade

    michaelab desafinado

    Joined:
    Jun 19, 2003
    Messages:
    6,403
    Likes Received:
    1
    Location:
    Lisbon, Portugal
    I use mysqldump. In fact, I have a cron job setup that, every day at 3am does the mysqldump, gzips up the dump file and then FTP's it to a different server I have - all in one command line...don't you just love Unix pipes :)

    Michael.
     
    michaelab, Aug 27, 2004
    #4
  5. amazingtrade

    amazingtrade Mad Madchestoh fan

    Joined:
    Jun 19, 2003
    Messages:
    5,139
    Likes Received:
    0
    Location:
    Manchester
    Thanks I will install MySQL tonight as I only have the version on the host server at the moment :p
     
    amazingtrade, Aug 27, 2004
    #5
  6. amazingtrade

    michaelab desafinado

    Joined:
    Jun 19, 2003
    Messages:
    6,403
    Likes Received:
    1
    Location:
    Lisbon, Portugal
    You only need the version on the host server. The way that 34sp.com (and many other hosting providers) configures their MySQL databases means you can't "connect" to them from an external (external to 34sp.com) host so tools like MySQL-Front won't work.

    mysqldump comes with MySQL and you can run it on the host server. When the 34sp.com forums come back up, do a search there and you should find what you need.

    Michael.
     
    michaelab, Aug 27, 2004
    #6
  7. amazingtrade

    amazingtrade Mad Madchestoh fan

    Joined:
    Jun 19, 2003
    Messages:
    5,139
    Likes Received:
    0
    Location:
    Manchester
    Thanks, hopefully the forums will be back up soon unless their hard drive has crashed. Normaly I would have asked the question there but it has been down since Monday I think.
     
    amazingtrade, Aug 27, 2004
    #7
  8. amazingtrade

    robert_cyrus

    Joined:
    Jun 20, 2003
    Messages:
    685
    Likes Received:
    0
    Location:
    near the sea
    you can use plesk on 34sp to get into phpmysqladmin, and u can backup from there
     
    robert_cyrus, Aug 28, 2004
    #8
  9. amazingtrade

    amazingtrade Mad Madchestoh fan

    Joined:
    Jun 19, 2003
    Messages:
    5,139
    Likes Received:
    0
    Location:
    Manchester
    Thanks I have just spotted the backup button now. I didn't realise they would make it that easy. I have a dump file so I assume that will restore the database as well?
     
    amazingtrade, Aug 28, 2004
    #9
  10. amazingtrade

    michaelab desafinado

    Joined:
    Jun 19, 2003
    Messages:
    6,403
    Likes Received:
    1
    Location:
    Lisbon, Portugal
    Yes, forgot to mention that you can run the phpMySqlAdmin backup but that tends not to work very well for large databases (it wouldn't work for the ZG database) - the same applies to all PHP backup scripts. The ZG database is around 100Mb btw incase you wondered what I meant by large.

    Michael.
     
    michaelab, Aug 28, 2004
    #10
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.