LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2005, 12:10 PM   #1
davethegenius
LQ Newbie
 
Registered: Oct 2004
Distribution: Ubuntu Warthog
Posts: 18

Rep: Reputation: 0
Restoring Mysql Databases


Hey guys and gals,

I currently run an apache server with mysql on windows and am ready to move to a real operating system. I have everything ready to go but need to restore all my mysql databases through the one rolled up file. So there is a file called backup.sql and want to restore all the databases into the server. Thanks alot

Dave
 
Old 08-05-2005, 01:35 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I use phpmyadmin;
http://www.sonnexh.com/forums/showthread.php?t=205
 
Old 08-05-2005, 02:01 PM   #3
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 477

Rep: Reputation: 50
There is a utility called mysqldump. It not only produces a schema, it will include all the data from the database. The syntax is mysqldump [options] databasename > somename. the somename file will contain everythin needed to produce the database. you would then go to the new box and give the command mysql < somename. There are many options you can use. Take a look at man.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Locatrion of Mysql databases gautam_iiith Linux - Software 1 12-08-2004 02:10 PM
how to link external databases using mysql? w0000422 Programming 5 01-15-2004 06:33 PM
Comparing two MySQL Databases WeNdeL Linux - Software 1 09-30-2003 03:47 PM
restoring mysql databases? and mysql permissions... armegeden Linux - Software 0 03-13-2003 11:04 AM
mysql databases k3v0 Linux - Software 2 12-03-2002 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration