Devmysql cpu过高的问题检查 返回首页
搜索

mysql cpu过高的问题检查

发表于2018-01-08|更新于2026-10-05|mysql
  1. 找到配置文件
1
sudo find / -name my.cnf
  1. 进入mysql执行
    show processlist;
    反复执行就可以看到当前进程,反复出现的语句就是因为速度太慢才出现的

参考数据
http://www.jb51.net/article/30495.htm
https://segmentfault.com/q/1010000001735963

文章作者: developer
文章链接: http://example.com/2018/01/08/mysql%20cpu%E8%BF%87%E9%AB%98%E7%9A%84%E9%97%AE%E9%A2%98%E6%A3%80%E6%9F%A5/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Dev!
mysqlcpu过高的问题检查
上一篇
微信 开放平台 第三方平台 授权
具体流程可以查看http://blog.csdn.net/qq1021623362/article/details/44922831或者官方文档 官方文档中说authorizer_refresh_token丢失后,只会在授权时刻提供,请妥善保存。 一旦丢失,只能让用户重新授权,才能再次拿到新的刷新令牌 实际上并不是这样 微信会每隔10分钟推送一次component_verify_ticket 使用component_appid component_appsecret component_verify_ticket可以换取component_access_token 使用component_appid authorizer_appid
下一篇
apache2.4 配置 正向代理
apache可以用作正向代理,按如下配置即可使用 开启proxy系列模块主要有mod_proxy.so mod_proxy_connect.so mod_proxy_http.so 侦听代理端口在apahce配置中,比如vhosts.conf,添加要侦听的端口,此处代理使用8088 1Listen 8088 配置代理虚拟机此处代理,为192.168.11.101:8088,就可以用这个代理从内网上网了 123456789<VirtualHost 192.168.11.101:8088> #正向代理设置 ProxyRequests On ProxyVia On <Proxy "*"> Order allow,deny Allow from all </Proxy></VirtualHost>
相关推荐
2018-05-31
mysql 授权 用户 权限
命令1GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; 其中‘root‘@’%’ 是 用户名@登录ip%通配符表示全部 IDENTIFIED BY 后跟的是密码 然后 1FLUSH PRIVILEGES; 参考文献https://www.cnblogs.com/bethal/p/5512755.html https://blog.csdn.net/qq_24531461/article/details/77980729
2019-03-19
mysql 统计重复记录数量
123456SELECT COUNT(*) as total FROM ( SELECT count(openid) as t FROM user GROUP BY `openid` HAVING t > 1 limit 1000) as a 如果下面写法会很慢 123456SELECT COUNT(*) as total FROM form_user WHERE id IN( SELECT count(id) FROM form_user GROUP BY `openid` HAVING COUNT(openid) > 1 limit 1000)
2018-01-24
redis mysql 性能记录 读写速度 windows linux
thinkphp5.0.10运行时间记录 centos7.2 腾讯云 1核1G 高效云盘 逐个写入redis lpush 100000条 3.381005smysql insert 100000条 23.706291s 获取最后redis rpop 0.001823smysql order|limit 0.003046s 索引查找redis lindex 0.001536smysql id 0.002653S windows10 2核4G SSD 逐个写入redis lpush 10000 12.013191smysql insert 10000 41.127062s 获取最后redis rpop 0.054366smysql order|limit 0.066480s 索引查找redis lindex 0.054666smysql id 0.069864s
2019-05-28
mysql 5.5 修改 root 密码
启动数据库1mysqld --skip-grant-tables 更新密码12use mysql;UPDATE user SET Password=PASSWORD('root') where USER='root';
2019-05-05
mysql ibdata1 文件过大
https://www.cnblogs.com/flish/p/5537679.htmlhttps://www.linuxidc.com/Linux/2018-01/150318.htmhttps://blog.csdn.net/demonson/article/details/80652945 在mysqld配置项目中 1innodb_file_per_table = 1 先备份数据库,然后停止数据库,删除ibdata1和ib_logfile开头的日志文件再重新导入数据库即可 可通过在/etc/my.cnf中添加 1innodb_force_recovery = 4 让表变为只读表
2020-04-13
mysql 管理
创建数据库1CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci; 创建用户1create user 'user'@'%' identified by '123'; 授权用户1grant all privileges on db.* to 'user'@'%'; 查看用户1show grants for 'user'@'%'; 修改密码123use mysql; update user set password=password('123') where user='root' and host='localhost'; flush privileges; mysql8密码问题1ALTER USER 'native'@&...
avatar
developer
AI相伴的开发者博客
文章
1028
标签
732
分类
35
Follow Me
公告
This is my Blog
最新文章
fast-whisper音视频转文字2026-10-02
rn开发中断开手机再连上后连不上metro2026-10-01
zed编辑器ESLint报错2026-10-01
python开发环境多版本管理2026-08-18
opencode自定义模型2026-06-18
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中