Backup and Restore MySQL Databases from HMG

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jayadevu
Posts: 240
Joined: Tue May 19, 2009 7:10 am

Backup and Restore MySQL Databases from HMG

Post by jayadevu »

Dear All,

Is it possible thru HMG ? any samples ?

I know it is possible thru passing parameters to MysqlDump.exe, but can we do it thru HMG without Mysqldump.exe.

Warm regards,

Jayadev
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Backup and Restore MySQL Databases from HMG

Post by Rathinagiri »

By backup if you mean to create .sql file, yes, we can do manually. I had done that. For detailed code please see MySQL to SQLite converter.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Backup and Restore MySQL Databases from HMG

Post by Rathinagiri »

This is the link for MySQL2SQLite Converter.

http://hmgforum.com/viewtopic.php?f=15&t=857

The idea is, you can use 'SHOW CREATE TABLE' command to find out the exact create statement for all the tables.

Then use select * for all the tables, and create a text file with insert command for each row in the table.

Save the file with extension .sql.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
jayadevu
Posts: 240
Joined: Tue May 19, 2009 7:10 am

Re: Backup and Restore MySQL Databases from HMG

Post by jayadevu »

Dear Rathinagiri,

Many thanks for your reply. Helpful as always.

What libraries have to be linked to compile this application ?

Warm regards,

Jayadev
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Backup and Restore MySQL Databases from HMG

Post by Rathinagiri »

No extra library is required to be included. You can just compile it.

In this converter I have created a sql text file for the whole mysql database selected.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply