Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Web Server

Linux Web Server Web Server help and support (including cpanel, whm, plesk, etc.)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-2008, 02:34 PM
Senior Member
 
Join Date: Jan 2007
Posts: 140
Wanch is on a distinguished road
Default 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).
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-12-2008, 01:00 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

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
Reply With Quote
  #3 (permalink)  
Old 11-14-2008, 05:37 PM
Member
 
Join Date: Jan 2007
Posts: 96
Prog is on a distinguished road
Default

There is also a way to iterate through all tables but I cannot remember it.
Reply With Quote
  #4 (permalink)  
Old 11-17-2008, 01:45 PM
Senior Member
 
Join Date: Jan 2007
Posts: 140
Wanch is on a distinguished road
Default

Jordan's suggestion works. Thanks for your help!
Reply With Quote
  #5 (permalink)  
Old 11-28-2008, 02:54 PM
Member
 
Join Date: Jul 2008
Posts: 61
tecktalk is on a distinguished road
Default

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
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 11-28-2008, 06:18 PM
Super Moderator
 
Join Date: Nov 2008
Posts: 71
WingedPanther is on a distinguished road
Default

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.
Reply With Quote
Reply

Tags
database, dump, mysql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable MySQL 3306 port Prog Linux Networking 4 09-24-2008 01:16 PM
Increase connections to MySQL Wanch Linux Web Server 4 05-16-2008 06:21 PM
MySQL Version Tor Linux Applications 9 02-22-2008 07:23 AM
MySQL Root Password Prog Linux Applications 1 10-08-2007 08:38 PM
.SQL into MySQL Lop Linux Applications 3 08-14-2007 07:01 PM


All times are GMT. The time now is 10:09 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.