Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 04: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, 05: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, 06: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, 23: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, 02: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, 06: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, 05: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

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