[英]How can I dump a MySQL database from mysql c library
I want to archive my database of mysql. 我要存档我的mysql数据库。 Kindly give me some guide lines how I can make it possible, I am using mysql c library for insertion and selection etc. I dont know how to use dump command.
请给我一些指导,我如何使它成为可能,我正在使用mysql c库进行插入和选择等。我不知道如何使用dump命令。
Use SHOW TABLES and DESCRIBE tbl_name queries to obtain structure of database and tables. 使用SHOW TABLES和DESCRIBE tbl_name查询来获取数据库和表的结构。 Then, use SELECT to fetch data and proceed it to your output according to the structure.
然后,使用SELECT提取数据,并根据结构将其继续输出到输出中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.