简体   繁体   English

如何从mysql C库转储MySQL数据库

[英]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 TABLESDESCRIBE 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.

相关问题 我无法使用 c++ 从 mysql 数据库中检索数据 - i can not retrieve the data from mysql database using c++ 如何使用MySQL ++库创建和使用MySQL语句 - How can I create and use a MySQL statement with MySQL++ library 任何人都知道我如何解决此C ++问题,以尝试将MySQL数据库返回的行打印到文本文件(.txt)中 - Anyone know how I can fix this C++ for trying to print the rows returning from a MySQL Database into a Text File(.txt) 当mysql数据库中发生更新或更改时,如何通知我的C或C ++应用程序 - How can i notify my C or C++ application program when an update or changes happens in mysql database 我如何在C ++中使用mysql? - How I can use mysql in C++? 如何使用 C++ 将用户定义的变量传递到 MySQL 数据库表中? - How can I pass user-defined variable into MySQL Database Table using C++? 如何链接图书馆? (MySQL库) - How do I link a library? (MySQL Library) 是否可以使用mysql_real_connect连接服务器而不使用MySQL / C提及数据库? - Can I Use mysql_real_connect to Connect to a Server Without Mentioning the Database Using MySQL/C? 如何从MySQL Connector / C ++获取本机C API连接结构? - How can I get the native C API connection structure from MySQL Connector/C++? 如何从Visual Studio(c ++)中的MySql数据库读取数据? - how to read data from a MySql database in Visual Studio (c++)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM