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
Backup and Restore MySQL Databases from HMG
Moderator: Rathinagiri
- 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
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.
South or North HMG is worth.
...the possibilities are endless.
- 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
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.
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.
South or North HMG is worth.
...the possibilities are endless.
Re: Backup and Restore MySQL Databases from HMG
Dear Rathinagiri,
Many thanks for your reply. Helpful as always.
What libraries have to be linked to compile this application ?
Warm regards,
Jayadev
Many thanks for your reply. Helpful as always.
What libraries have to be linked to compile this application ?
Warm regards,
Jayadev
- 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
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.
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.
South or North HMG is worth.
...the possibilities are endless.