Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - DateTime
Search - DateTime - List
Function in SQL to simplify working with DateTime.
Date : 2025-12-30 Size : 6kb User : Pimenta186

Easy Backup and Restore MySQL utility.-Introduction It is the basic, easy to use MySQL Backup/Restore utility. Background It is basically developed for non programmers. So, anyone can use it. The simplest tool for the job. Using the code Backup method takes two arguments, i.e, path to save the backup file and connection string. Hide Copy Code // Backup MySql private void MySQLBackup(string path, string constring) { string file path+ txt_database.Text+ _ + DateTime.Now.ToString( yyyy-MM-dd_hh-mm-ss )+ .sql using (MySqlConnection conn new MySqlConnection(constring)) { using (MySqlCommand cmd new MySqlCommand()) { using (MySqlBackup mb new MySqlBackup(cmd)) { cmd.Connection conn conn.Open() mb.ExportToFile(file) conn.Close() } } } } Now to the restore method with the same two arguments Hide Copy Code // Restore MySQL(.sql) file to the private void
Date : 2025-12-30 Size : 256kb User : xps1530
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.