C ++和MySQL中止连接 [英] C++ and MySQL aborted connects

查看:87
本文介绍了C ++和MySQL中止连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何编写一个C/C ++控制台应用程序,该应用程序连接到MySQL服务器并使用MySQL的全局变量提供的信息打印中止的连接数?

How can I write a C/C++ console application that connects to a MySQL server and prints the number of aborted connects using information provided by MySQL''s global variables?

推荐答案

使用MySQL客户端库,或 Connector/C ++ [
Use the MySQL client library, or Connector/C++[^].

Then the query is SHOW STATUS LIKE ''aborted_connects''


C/C ++控制台应用程序如何连接到MySQL服务器(启用InnoDB插件)??
How C/C++ console application can connects to a MySQL server (with InnoDB plugin enabled) ??


这篇关于C ++和MySQL中止连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆