随笔分类 - 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的运行目录
阅读全文
摘要:查看连接到数据库的客户端ip及各连接数 SELECT substring_index(host, ':',1) AS host_name,state,count(*) FROM information_schema.processlist GROUP BY state,host_name; 查看连接
阅读全文
摘要:参考:https://www.cnblogs.com/codecat/p/10833523.html select uuid() as uuid; 默认生成的uuid含有'-',可以使用replace函数替换掉'-',SQL如下: select replace(uuid(),"-","") as u
阅读全文