![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
lfwer
这个作者很懒,什么都没留下…
展开
-
Mysql 查看连接数,状态 最大并发数
mysql最大连接数 show status like ‘%max_connections%’; 重新设置 set global max_connections=1000 查询数据库当前设置的最大连接数 show variables like ‘%max_connections%’; 服务器响应的最大连接数 show global status like ‘Max_used_connections...转载 2018-11-09 17:54:41 · 221 阅读 · 0 评论 -
mysql列转行
SELECT SUBSTRING_INDEX( SUBSTRING_INDEX(group_id, ',', b.help_topic_id + 1), ',',- 1) FROM `group_sms_send_rule` a JOIN mysql.`help_topic` b ON b.help_topic_id < ( LENGTH(a....转载 2018-11-09 17:56:17 · 183 阅读 · 0 评论 -
mysql show processlist 结果归并
查看正在执行的语句有哪些,并做好归并排序: mysql -uroot -e 'show processlist\G'|grep 'Info'|grep -v "NULL"|awk -F ":" '{print $2}'|sort|uniq -c|sort -rn; 查询结果: Warning: Using a password on the command line interface can ...转载 2018-11-12 10:58:02 · 162 阅读 · 0 评论 -
MySQL-5.7.20 安装配置
1)安装包下载:https://pan.baidu.com/s/17dyNFbfU2QZhRKvQjjgitw 2)检查你所用的Linux下有没有安装过mysql,有没有卸载干净 rpm -qa|grep -i mysql mysql-5.7.13-linux-glibc2.5-x86_64 如果已经安装了库文件,应该先卸载,不然会出现覆盖错误。注意卸:载时使用了–nodeps选项,忽略了依赖...原创 2019-01-17 17:52:39 · 120 阅读 · 0 评论 -
MySQL-5.7.20 安装配置
1)安装包下载:https://pan.baidu.com/s/17dyNFbfU2QZhRKvQjjgitw 2)检查你所用的Linux下有没有安装过mysql,有没有卸载干净 rpm -qa|grep -i mysql mysql-5.7.13-linux-glibc2.5-x86_64 如果已经安装了库文件,应该先卸载,不然会出现覆盖错误。注意卸:载时使用了--nod...原创 2018-04-08 17:27:01 · 105 阅读 · 0 评论 -
mysql show processlist 结果归并
mysql -uroot -e 'show processlist\G'|grep 'Info'|grep -v "NULL"|awk -F ":" '{print $2}'|sort|uniq -c|sort -rn;(查看正在执行的语句有哪些,并做好归并排序:) 查询结果: Warning: Using a password on the command line interfac...原创 2018-07-09 11:27:35 · 88 阅读 · 0 评论 -
mysql列转行
SELECT SUBSTRING_INDEX( SUBSTRING_INDEX(group_id, ',', b.help_topic_id + 1), ',', - 1 ) FROM `group_sms_send_rule` a JOIN mysql.`help_topic` b ON b.help_topic_id ...原创 2018-08-07 11:44:29 · 315 阅读 · 0 评论 -
Mysql 查看连接数,状态 最大并发数
show status like '%max_connections%'; ##mysql最大连接数set global max_connections=1000 ##重新设置show variables like '%max_connections%'; ##查询数据库当前设置的最大连接数show global status like 'Max_used_connections'; ##服务器响...原创 2018-08-09 10:48:33 · 889 阅读 · 0 评论 -
springboot mybatis 插入emoji字符错误解决
直接上解决办法: 1:修改字段类型为utf8mb4 2:修改springboot数据源配置,增加connectionInitSqls参数 spring.datasource.druid.connection-init-sqls=set names utf8mb4; 注意:我用的是Druid连接池。 好了,就这样。 ...原创 2018-12-28 16:25:55 · 1822 阅读 · 0 评论