Go Back   Cloud Computing > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-11, 12:31
BOD Member
 
Join Date: Jul 2011
Posts: 68
Default mysql dumping

Hello

I am new to MySQL and I need some sort of assistance. I am trying to export data only from a db using mysqldump. By using same methods I can export both data and its structure; following command I am using:

Quote:
$creatbackup = "c:/xampp/mysql/bin/mysqldump.exe -u ".$user_name." --password=".$password." ".$db_name." applications> ".$backupFile;

Where:
$username = db user_name
$password = db password
$db_name = db name
$backupFile = file name + path
I get results when I use this command, but when I am trying to create a file with only data. I get nothing. Can you help me?
Reply With Quote
  #2 (permalink)  
Old 07-15-11, 12:34
BOD Member
 
Join Date: Jul 2011
Posts: 59
Default

You want to use –no-create-info option while dumping the data, so it will only dump data from tables. For an example. -> mysqldump -u user_name -p password db name –no-create-info > dumpfile:
Reply With Quote
  #3 (permalink)  
Old 12-15-11, 01:35
BOD Member
 
Join Date: Dec 2011
Posts: 3
Default mysql databse dump

use this script

backup: # mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql


Reply With Quote
Reply


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


All times are GMT -6. The time now is 00:51.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.