0

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.

user3164377
  • 59
  • 2
  • 6
  • 1
    Check 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 Answers1

0

You should lower the timeout for the client. Take a look at this answer: How to set timeout in mysql c++ connector

Community
  • 1
  • 1
Steyx
  • 636
  • 5
  • 6