删除sonar上的项目的残余

项目残余了shop-*,见下图。
 projects -->management 下没有这些项目
那么需要进入到sonar服务器上进行删除。
第一步,到mysql\bin下启动mysqladmin start;
第二步,到sonar数据库中, mysql -usonar -psonar -h127.0.0.1 
第三步,项目名称:select * from projects where scope='PRJ' AND qualifier='TRK' order by name;
找出项目残余的id号:select id from projects where id like 'shop-%';
依次执行:
delete from resource_index where root_project_id in (3984,4529,4530,4531,4532);
delete from snapshots where root_project_id in (3984,4529,4530,4531,4532);
delete from projects where root_id in (3984,4529,4530,4531,4532);
delete from projects where id in (3984,4529,4530,4531,4532);
此时,已经成功删除。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章