If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to do export and import

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-03, 03:40
D.Ramesh D.Ramesh is offline
Registered User
 
Join Date: Sep 2003
Posts: 12
How to do export and import

Hi!
How to do an export/import in mysql on WIN2000.

Many Thanks,
Reply With Quote
  #2 (permalink)  
Old 12-10-03, 04:41
pingu8613 pingu8613 is offline
Registered User
 
Join Date: Dec 2003
Location: Sweden
Posts: 4
Re: How to do export and import

Quote:
Originally posted by D.Ramesh
Hi!
How to do an export/import in mysql on WIN2000.

Many Thanks,
I usually run LOAD DATA INFILE mto import and mysqldump [OPTIONS] database [tables] to export (see below).

http://www.mysql.com/doc/en/mysqlimport.html
http://www.mysql.com/doc/en/mysqldump.html
/maria
Reply With Quote
  #3 (permalink)  
Old 12-10-03, 05:27
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
You can check

http://www.lasso-developpeur.net/us/...tab=db&lang=us

For importing text file in a mysql table
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #4 (permalink)  
Old 12-11-03, 22:54
D.Ramesh D.Ramesh is offline
Registered User
 
Join Date: Sep 2003
Posts: 12
Thanks!
Reply With Quote
  #5 (permalink)  
Old 12-12-03, 01:38
D.Ramesh D.Ramesh is offline
Registered User
 
Join Date: Sep 2003
Posts: 12
Hi!
c:\mysql\bin>mysqldump --all-databases > alldbdump.sql

Using the above command i have taken the dump of all the databases. Now i want to restore all the databases in the dump to a new machine.How to do it?I have to use the Load data Infile or is there any other way.Buy using the load data infile .txt files can be imported to table.

Now i have one dump file(alldbdump.sql)?

Many Thanks!
Reply With Quote
  #6 (permalink)  
Old 12-12-03, 05:12
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
MySqldump whithout specifics options
Will produce a simple sql file
contenning db and table creation statement
and insert statement to populate the table

So to restaure your db on an other serveur you should use

mysql -u [user] -p -h [hote] .... < file.sql
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #7 (permalink)  
Old 12-15-03, 04:14
D.Ramesh D.Ramesh is offline
Registered User
 
Join Date: Sep 2003
Posts: 12
Thanks a lot...
Reply With Quote
Reply

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On