SonarQube : How to reduce size of measures_data.ibd?(SonarQube:如何减小 measure_data.ibd 的大小?)
问题描述
我已经使用 SonarQube/Sonar 几年了,measures_data.idb 的大小已经增长到 114GB,是的.
I've been using SonarQube/Sonar for a few years now and the measures_data.idb size has grown to a wopping 114GB, yes gig.
我已经设置了默认的家政设置.
I've got the default house keeping settings set.
我正在使用 MySql 5.6(每个文件的默认设置)
I'm using MySql 5.6 (with default per file setting)
我正在使用 Sonar 4.0.
I'm using Sonar 4.0.
我尝试从 mysql 导出数据库,然后再次导入.但它的大小相同.它确实说明了..
I've tried exporting the db from mysql and then importing it again. but its the same size. It does state..
note : Table does not support optimize, doing recreate + analyze instead
status : OK
我从 Sonar 的批量删除"选项中删除了几个旧项目,但文件大小相同.
I've deleted a couple of old projects from Sonar's "Bulk Deletion" option, but the file is the same size.
谁能给我一些关于下一步尝试的建议?
Can anyone give me some advice on what to try next?
谢谢杰夫·波特
推荐答案
最后的解决方案很简单.
The solution in the end was simple.
从 MySQL 5.5 导出.(导出文件为 114 GB)
Export from MySQL 5.5. (export file is 114 GB)
卸载 MySQL 5.5(删除所有数据文件)
Uninstall MySQL 5.5 (remove all data files)
安装 MySQL 5.6
Install MySQL 5.6
导入数据
从 MySQL 5.6 导出(导出文件现在为 13 GB)
Export from MySQL 5.6 (export file is now 13 GB)
卸载 MySQL 5.6(删除所有数据文件)
Uninstall MySQL 5.6 (remove all data files)
安装 MySQL 5.6
Install MySQL 5.6
导入数据
这篇关于SonarQube:如何减小 measure_data.ibd 的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:SonarQube:如何减小 measure_data.ibd 的大小?
基础教程推荐
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- 无法解决整理冲突 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
