PHP automatically closes database connections when the script completes (unless you use persistent connections or close the connection yourself before the script completes). In your C ++ application, this will depend on how you actually handle the connections. But I can imagine that you want your connections to open for a longer time in a C ++ application, and you could more quickly dial the maximum number of concurrent users.
You can also configure some of the MySQL options if you have performance issues.
But how do you access MySQL from your C ++ application? Are you not using ODBC?
source
share