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 > dumping mysql file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-11, 05:49
pplastiras pplastiras is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
Exclamation dumping mysql file

Hi,

I’m new to this forum and I need some help. I’m trying to export only data from a database using mysqldump method. In a similar use of this method I can export both data and structure using the commant below:


Code:
$creatBackup = "c:/xampp/mysql/bin/mysqldump.exe -u ".$username." --password=".$password." ".$db_name." applications> ".$backupFile;

Where:
$username = database username
$password = database password
$db_name = database name
$backupFile = file name + path

When I use this command, I get a result. But when I’m trying to create a file with only data I take nothing. Please help me!!!!!
Reply With Quote
  #2 (permalink)  
Old 07-04-11, 03:33
Harisankar.A Harisankar.A is offline
Registered User
 
Join Date: May 2011
Posts: 11
dumping mysql file

Hi,

Use --no-create-info option while dumping data, it will dump only data from tables.

Ex:

-> mysqldump -u username -p password databasename --no-create-info > dumpfile;
Reply With Quote
  #3 (permalink)  
Old 07-15-11, 04:07
pplastiras pplastiras is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
Quote:
Originally Posted by Harisankar.A View Post
-> mysqldump -u username -p password databasename --no-create-info > dumpfile;
thanks a lot that was exactly what I was looking for... thanks again for your help and sorry for my delay to answer you...
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