Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Script Library
 dump only data from a database

Author  Topic 

pplastiras
Starting Member

2 Posts

Posted - 2011-06-26 : 13:00:05
Hi,

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

$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!!!!!

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-06-26 : 13:32:20
This is a MS SQL Server forum and I'm sure you can get better help in a MySQL forum.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

pplastiras
Starting Member

2 Posts

Posted - 2011-06-26 : 14:14:42
Yes you are right. But I'm trying it everywhere. Last time me and my partners have a problem (with UNIQUE KEY) this forum gave us an answer. If you know how to do what i'm asking for, please just let me know. Every help is important even in MS SQL and not in MySQL. Thanks again.
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-06-27 : 02:43:04
Look here:
http://chriswa.wordpress.com/2008/02/20/mysqldump-data-only/


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -