Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 11:00 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: cc_callplan_lcr corrupted
PostPosted: Tue Feb 23, 2010 10:34 pm 
Offline

Joined: Sun May 17, 2009 8:04 am
Posts: 115
Hey Guys,
How do i resolve a corrupted cc_callplan_lcr table in my database?

A2billing ver 1.5.1

Cheers,
Taff


Top
 Profile  
 
 Post subject: Re: cc_callplan_lcr corrupted
PostPosted: Tue Feb 23, 2010 10:40 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
A question better asked of the Mysql forum, but there are some tools for those us only speak conversational MySQL in phpMyAdmin.

Joe


Top
 Profile  
 
 Post subject: Re: cc_callplan_lcr corrupted
PostPosted: Tue Feb 23, 2010 10:42 pm 
Offline

Joined: Sun May 17, 2009 8:04 am
Posts: 115
It got corrupted after running the database updates during an upgrade.

I've tried the repair tool in phpmyadmin but no go..


Top
 Profile  
 
 Post subject: Re: cc_callplan_lcr corrupted
PostPosted: Tue Feb 23, 2010 10:44 pm 
Offline

Joined: Sun May 17, 2009 8:04 am
Posts: 115
What exactly does that table control?

Can it be dropped and recreated?


Top
 Profile  
 
 Post subject: Re: cc_callplan_lcr corrupted
PostPosted: Wed Feb 24, 2010 6:25 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
This table is a view so it can be dropped and recreated.

Yours,
/Areski


Top
 Profile  
 
 Post subject: Re: cc_callplan_lcr corrupted
PostPosted: Wed Feb 24, 2010 9:44 pm 
Offline

Joined: Sat May 10, 2008 4:19 pm
Posts: 132
Location: Wilmington, DE
Hi,

I'm having a similar problem where if a do a mysqldump and then try to restore, I get an error relating to cc_callplan_lcr. At first I thought it was corrupted, so I re-created it and the problem continues. I haven't tried removing the view before doing the dump.

The question is: How are others dealing with this? What is the best solution to dump and restore the mya2billing database?

Thanks,

Robin.


Top
 Profile  
 
 Post subject: Re: cc_callplan_lcr corrupted
PostPosted: Wed Feb 24, 2010 10:13 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
You can try to apply the following :


Code:
DROP  VIEW `cc_callplan_lcr;

CREATE VIEW `cc_callplan_lcr` AS select `cc_ratecard`.`id` AS `id`,`cc_prefix`.`destination` AS `destination`,`cc_ratecard`.`dialprefix` AS `dialprefix`,`cc_ratecard`.`buyrate` AS `buyrate`,`cc_ratecard`.`rateinitial` AS `rateinitial`,`cc_ratecard`.`startdate` AS `startdate`,`cc_ratecard`.`stopdate` AS `stopdate`,`cc_ratecard`.`initblock` AS `initblock`,`cc_ratecard`.`connectcharge` AS `connectcharge`,`cc_ratecard`.`id_trunk` AS `id_trunk`,`cc_ratecard`.`idtariffplan` AS `idtariffplan`,`cc_ratecard`.`id` AS `ratecard_id`,`cc_tariffgroup`.`id` AS `tariffgroup_id` from ((((`cc_tariffgroup_plan` left join `cc_tariffgroup` on((`cc_tariffgroup_plan`.`idtariffgroup` = `cc_tariffgroup`.`id`))) join `cc_tariffplan` on((`cc_tariffplan`.`id` = `cc_tariffgroup_plan`.`idtariffplan`))) left join `cc_ratecard` on((`cc_ratecard`.`idtariffplan` = `cc_tariffplan`.`id`))) left join `cc_prefix` on((`cc_prefix`.`prefix` = `cc_ratecard`.`destination`))) where (`cc_ratecard`.`id` is not null);



Yours,
/Areski


Top
 Profile  
 
 Post subject: Re: cc_callplan_lcr corrupted
PostPosted: Thu Feb 25, 2010 1:20 am 
Offline

Joined: Sat May 10, 2008 4:19 pm
Posts: 132
Location: Wilmington, DE
Thanks Areski.

I wanted to do that but I wasn't too sure if I should.
I'll give it a try later.

Robin.


Top
 Profile  
 
 Post subject: Re: cc_callplan_lcr corrupted
PostPosted: Sun Feb 28, 2010 12:52 am 
Offline

Joined: Sun May 17, 2009 8:04 am
Posts: 115
Hey that fixed it for me...

Thanks..


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group