Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET MySQL
Dear All,
 
how to generate database script in MySQL.
Posted 27-Sep-12 0:54am
Comments
Storxstar at 17-Oct-12 2:57am
   
Very Vague Question....
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi Smile | :) ,
 
One way to generate a database script in MySQL is using the mysqldump feature. Another option is creating a backup of MySQL:
 
1. Log on to MySQL Administrator
2. Click Backup on the Left Panel
3. In the Backup Project insert the name of the backup and in Select Schema the name of the DB from which you want to generate the script
4. Click > (next)and then click Execute Backup Now
 
I hope these is what you were looking for...
Diana
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You can use MySqlBackup.NET to help you to generate database script of MySQL:
void GenerateScript()
{
    string constr = "server=localhost;user=root;pwd=qwerty;database=test;";
    string file = "C:\\MyDumpFile.sql";
    MySqlBackup mb = new MySqlBackup(constr);
    mb.ExportInfo.FileName = file;
    mb.Export();
}
Read more at: MySqlBackup.NET - MySQL Backup Solution for C#, VB.NET, ASP.NET[^]
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 330
1 Maciej Los 180
2 Richard MacCutchan 115
3 arvind mepani 104
4 Tino Fourie 92


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 18 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid