I'm using C++ programming to query and ping MySQL server. The version of MySQL server is 5.5 and using VS2010 for C++ programming. But when the services of MySQL server is stopped, the application is taking much query execution time. Is there a way to reduce the query execution time using C++? Please direct me to sample code snippets. Thanks in advance.
Asked
Active
Viewed 94 times
0
-
1Check http://stackoverflow.com/questions/4254059/how-to-set-a-timeout-for-mysql-query-using-c-api - is it what you are looking for? – Oleg Fedorov Jan 30 '14 at 12:23
1 Answers
0
You should lower the timeout for the client. Take a look at this answer: How to set timeout in mysql c++ connector