Closed Thread
Results 1 to 6 of 6

Thread: MySQL dump all databases?

  1. #1
    Wanch Guest

    MySQL dump all databases?

    Is it possible to dump all MySQL databases into a SQL file so I can move the databases to a new MySQL server? I've been doing it 1x1 but realized there are some databases that I may miss (like the horde database).

  2. CODECALL Circuit advertisement

     
  3. #2
    Jordan Guest
    This is possible, I had to look in the manual and found it here:

    MySQL :: MySQL 5.0 Reference Manual :: 4.5.4 mysqldump — A Database Backup Program

    You can dump all databases by doing:

    Code:
    # mysqldump [options] --all-databases
    An example would be:
    Code:
    # mysqldump -u root -p --all-databases > all_dbs.sql
    If you just want to dump several databases into one file:

    Code:
    # mysqldump [options] --databases db_name1 [db_name2 db_name3...]
    An example would be:

    Code:
    # mysqldump -u SomeUser -p --databases mydb1 mydb2 mydb3 > myDbs.sql

  4. #3
    Prog is offline Learning Programmer
    Join Date
    Jan 2007
    Posts
    98
    Rep Power
    0
    There is also a way to iterate through all tables but I cannot remember it.

  5. #4
    Wanch Guest
    Jordan's suggestion works. Thanks for your help!

  6. #5
    tecktalk is offline Programmer
    Join Date
    May 2008
    Posts
    179
    Rep Power
    0
    yeah!.. he is the god of this forum and is very talented person.. i love him just anyways.. Hey Jordon.. I would too like to know something but about the installation of programs in linux as I am just new in linux as I was using Windows previously and just confused about everywhere.. I am using ubuntu..
    Can you please tell me where I can get main programs like media players. for linux the basic things??

    ____________________
    corporate awards thermaclear

  7. #6
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143
    I would use Synaptic for that. Ubuntu has it labeled something like an Add/Remove programs. It will download the necessary files from the internet.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Similar Threads

  1. Replies: 5
    Last Post: 04-04-2011, 07:34 AM
  2. how to deploy mysql databases
    By tontonskie in forum Database & Database Programming
    Replies: 2
    Last Post: 12-13-2010, 09:51 AM
  3. mysql dump - cron job
    By zaphe87 in forum General Programming
    Replies: 3
    Last Post: 04-09-2009, 07:33 AM
  4. DataGridView objects and MySQL databases
    By mholt in forum C# Programming
    Replies: 1
    Last Post: 04-01-2008, 07:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts