首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >返回mysql thread_id

问返回mysql thread_id
EN

Stack Overflow用户
提问于 2011-05-04 04:34:28
回答 1查看 189关注 0票数 0

每当我使用命令提示符连接到mysql时,它都会返回一个thread_id (本例中是64)。是否可以使用Java (首选)或PHP获得这个数字?

代码语言:javascript
复制
# mysql -h10.10.10.10 -uroot -proot@123
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 64
Server version: 5.0.77-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-05-04 04:45:56

ID函数将帮助您。

查询:

SELECT CONNECTION_ID();

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5878585

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档