Write a C/C++ program that connects to a MySQL server and
checks if the InnoDB plug-in is installed on it. If so, your
program should print the maximum number of concurrent
threads that the InnoDB plug-in can create.
Answer / Ankush Soni
Here's a simplified example in C++ using MySQL Connector/C++. Note that this requires proper setup and installation of the necessary libraries.nn```cppn#include <mysqlx/xdevapi.h>nusing namespace mysqlx;nSession session = System::CreateSession();nSchema schema(session, "information_schema");nTable table(schema, "innodb_sys tables");nRow row = table.single("engine='InnoDB' AND name='innodb_table_stats'");nstd::string max_threads = row["Max_writes"].get<unsigned long>();nstd::cout << "The InnoDB plug-in can create " << max_threads << " concurrent threads.";n
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a program to print distinct words in an input along with their count in input in decreasing order of their count..
Explain what is a pragma?
Why should I prototype a function?
while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.
What is the concatenation operator?
fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }
What is binary tree in c?
A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above
Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....
void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case
What does node * mean?
Describe the modifier in c?