C program to consume MySQL API for backup? [closed] - mysql

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am looking for a way to backup MySql database use a C program. Does MySql provide API for backup?

No, mysql does not provide any dpecific api to back a database up.
Mysql does provide the mysqldump utility that can be called from the command line to back up a database and also provides a general C api to access a mysql server. The heneral api can be used to write your own backup program if you are unhappy with mysqldump.

Related

ZKTeco (Bio-metric Fingerprint + Card): Save data to my local Database [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have an attendance machine ZKTeco f18. Which can read both Fingerprint and Card. I have access to the database of it. I want to keep data from this machine database to my local PC dababase like MySQL. What will be the steps of this work.
**Which language will be preferable for this work?
If it has TCP/IP support assign an IP address to it on the same subnet as your PC so that you can reach it via network (assuming it is connected to your LAN), you could use Php scripting language to access the database and save it to your PC's MySQL. Atleast for me that's what I would use. Which data would from the device would you want to archive in your PC? The fingerprint data or the reports?

How Do Different Database Vendors Store Metadata Of Databases [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I've been searching information about how access, MySQL, SQL Server and Oracle save the metadata of the databases, and I couldn't found it.
You can retrive MetaData of the table "database independent" using JDBC:
DatabaseMetaData databaseMetaData = connection.getMetaData();
You just need to add the connector (can be MySQL JDBC, SQL Server, SQLite, Oracle, Postgree, etc).

Copy tables from one database to another on Azure [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have to copy tables from one database on Azure to another which is on our virtual server there on Azure. Importing is not working. What would be the way to make this. The other issue is some of the tables have different columns can I copy matched columns only? this is sql servers.
SQL-Azure does not support USE statement and effectively no cross-db queries.
If you want to copy/backup the db to another sql azure db you can use the "Same-server" copying or "Cross-Server" copying in SQL-Azure. Refer this msdn article

How to connect MS SQL dynamically with postgreSQl data base [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am very new in PostgreSQL database. I am currently using MS SQL server 2008. Now i need the whole data in postgreSQL, I have installed postgreSQL in my server. Kindly tell me the procedure to connect with PostgreSQl. If there is no option, kindly tell me whether we can take back up of MS SQl and restore it in postgreSQl
thanks in advance
Either you need an ETL tool to transfer the data from one to the other or you have to export in a neutral format, like .csv, and import into the other using built in tools.
I'd opt for the first one.

Storing SNMP GET output to MySQL database [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I want to make a simple script that periodically performs SNMP GET and stores the output to MySQL database. It will be running on Windows.
What would be the least painful choice of programming language to write it in? Powershell, Java, …?
Python has SNMP (i.e. NET-SNMP) bindings. It will handle MySQL database as well. In that way you may use those APIs to create your own scanning application with SNMP communication channel and MySQL database storage of collected data. Of course there are tons of other solutions/combinations possible... however I recommend this one, because in such a simple case you don't have to engage heavy JVM.
Python has SNMP(Net-SNMP) binding and it's better that you can use RRD database to store output as it consists time interval itself.Python has RRD api also and you can handle easily