Repairing Database for Goautodial

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Repairing Database for Goautodial

Postby root2 » Sun Jan 06, 2013 4:38 pm

HI everyone,

Does anyone know how to repair the database on goautodial 2.1. The old command (mysqlcheck -u root -p --auto-repair --check --optimize --all-databases) only works on vicidial.

Thanks in advance!

Hardware:
Quad Core
4gig memory
500gig HD
Single gigabit lan
no additional hardware

VICIDIAL VERSION: 2.4-325c BUILD: 110430-1924
Canonical Hostname
192.168.1.105
Listening IP
192.168.1.105
Kernel Version
2.6.18-238.9.1.el5.goPAE (SMP)
Distro Name
GoAutoDial CE 2.1
AMD Phenom(tm) 9600B Quad-Core Processor
4 gig ddr2
500gig hd
Goautodial 2.1
Vicidial SVN 2.4-309a BUILD: 110430-1642
Asterisk 1.4.39.1-vici
Dahdi 2.4.1
CentOS 5.6
root2
 
Posts: 20
Joined: Fri Aug 19, 2011 6:46 am

Re: Repairing Database for Goautodial

Postby williamconley » Sun Jan 06, 2013 8:51 pm

Code: Select all
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases


works on all mysql installations (it's a mysql command, not a vicidial command). However: This requires that you know the mysql root user's password. If there is no root user password, leave out the "-p".

You can also modify the command a bit, here is what we use most of the time:

Code: Select all
mysqlcheck -u cron -p1234 --auto-repair --all-databases


Be sure to check that your hard drive is not full!
Code: Select all
df -h


And that your server is protected from power outages with an Uninterruptible Power Supply
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Repairing Database for Goautodial

Postby ctc_olsen » Mon Jan 07, 2013 9:04 am

Try using Navicat too. It's easier. Just right click and hit on repair.
VERSION: 2.4-309a BUILD: 110430-1642 (Upgrade from CE 2.0,ISO) | Asterisk 1.4.27.1-1 | VmWare vCenter Server Ver 4.1.0| No additional software | No Digium/Sangoma Hardware
ctc_olsen
 
Posts: 65
Joined: Tue Jul 24, 2012 7:34 am

Re: Repairing Database for Goautodial

Postby williamconley » Mon Jan 07, 2013 1:59 pm

Thanks, but I prefer FREE/OpenSource software. Kind of a policy. LOL
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Repairing Database for Goautodial

Postby ctc_olsen » Mon Jan 07, 2013 2:05 pm

:) Nice to have that command handy though. Thanks for all your help William.
VERSION: 2.4-309a BUILD: 110430-1642 (Upgrade from CE 2.0,ISO) | Asterisk 1.4.27.1-1 | VmWare vCenter Server Ver 4.1.0| No additional software | No Digium/Sangoma Hardware
ctc_olsen
 
Posts: 65
Joined: Tue Jul 24, 2012 7:34 am

Re: Repairing Database for Goautodial

Postby williamconley » Mon Jan 07, 2013 2:30 pm

Remember that often when you use a "database administration tool", it will provide the SQL Code for whatever you just asked it to do. phpMyAdmin (free and in vicibox and goautodial install .iso's) will provide this for you regardless of what you just did. The only thing it hides is the password that will appear as '***' instead of the actual password in quotes. Very handy when performing a complex task to copy that code to a note file for future reference.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Repairing Database for Goautodial

Postby gers55 » Wed Feb 13, 2013 6:20 pm

If you go to goautodial admin.php page you can actually repair sql database via mysql - function - optimize
GoAutodial 2.1 Installer | VERSION: 2.4-309a | BUILD: 110430-1642 |1.4.39.1-vici |Dedicated Cloud Server | No other hardware
gers55
 
Posts: 76
Joined: Sun Feb 26, 2012 6:09 pm

Re: Repairing Database for Goautodial

Postby williamconley » Wed Feb 13, 2013 7:27 pm

Interesting. Does this repair ALL tables, or does it identify the crashed table and only repair that one ...?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 72 guests