
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 · 264 阅读 · 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 · 217 阅读 · 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 · 195 阅读 · 0 评论 -
MySQL-5.7.20 安装配置
1)安装包下载:https://pan.baidu.com/s/17dyNFbfU2QZhRKvQjjgitw2)检查你所用的Linux下有没有安装过mysql,有没有卸载干净rpm -qa|grep -i mysqlmysql-5.7.13-linux-glibc2.5-x86_64如果已经安装了库文件,应该先卸载,不然会出现覆盖错误。注意卸:载时使用了–nodeps选项,忽略了依赖...原创 2019-01-17 17:52:39 · 169 阅读 · 0 评论 -
MySQL-5.7.20 安装配置
1)安装包下载:https://pan.baidu.com/s/17dyNFbfU2QZhRKvQjjgitw 2)检查你所用的Linux下有没有安装过mysql,有没有卸载干净rpm -qa|grep -i mysqlmysql-5.7.13-linux-glibc2.5-x86_64 如果已经安装了库文件,应该先卸载,不然会出现覆盖错误。注意卸:载时使用了--nod...原创 2018-04-08 17:27:01 · 148 阅读 · 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 · 120 阅读 · 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 · 385 阅读 · 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 · 919 阅读 · 0 评论 -
springboot mybatis 插入emoji字符错误解决
直接上解决办法:1:修改字段类型为utf8mb42:修改springboot数据源配置,增加connectionInitSqls参数spring.datasource.druid.connection-init-sqls=set names utf8mb4;注意:我用的是Druid连接池。好了,就这样。...原创 2018-12-28 16:25:55 · 1922 阅读 · 0 评论