随笔分类 -  mysql

摘要:225为例: $which mysql /usr/bin/mysql $ whereis mysql mysql:/usr/bin/mysql /usr/lib64/mysql /usr/local/mysql /usr/share/mysql /usr/bin/mysql : mysql的运行目录 阅读全文
posted @ 2023-05-12 17:05 coco9821 阅读(70) 评论(0) 推荐(0) 编辑
摘要:查看连接到数据库的客户端ip及各连接数 SELECT substring_index(host, ':',1) AS host_name,state,count(*) FROM information_schema.processlist GROUP BY state,host_name; 查看连接 阅读全文
posted @ 2023-04-23 13:51 coco9821 阅读(166) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/codecat/p/10833523.html select uuid() as uuid; 默认生成的uuid含有'-',可以使用replace函数替换掉'-',SQL如下: select replace(uuid(),"-","") as u 阅读全文
posted @ 2021-08-16 18:10 coco9821 阅读(223) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示