General and Support topics relating to ViciDialNow and GoAutoDial ISO installers
Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid
by globalme » Wed Apr 29, 2009 10:40 am
I have seen many problem get solved once we run below command :
mysqlcheck --auto-repair asterisk -ppassword
1) How to provide a link in admin section of the portal where even the normal tech guy can click and repair the db ?
2) How to add these line in cronjob so that when we start the server , db get repair automatically ??
-
globalme
-
- Posts: 132
- Joined: Fri Mar 27, 2009 12:38 pm
by gardo » Wed Apr 29, 2009 10:43 am
You can add it to /etc/rc.local. That's the file responsible for automatically starting programs on bootup.
-
gardo
-
- Posts: 1926
- Joined: Fri Sep 15, 2006 10:24 am
- Location: Manila, 1004
-
by globalme » Wed Apr 29, 2009 10:53 am
Trick is when we run that command, it asks for password.
How to bypass that ?
-
globalme
-
- Posts: 132
- Joined: Fri Mar 27, 2009 12:38 pm
by gardo » Thu Apr 30, 2009 5:48 am
mysqlcheck --auto-repair asterisk -p"password"
Where "password" is the password without the quotes. That should do the trick.
-
gardo
-
- Posts: 1926
- Joined: Fri Sep 15, 2006 10:24 am
- Location: Manila, 1004
-
by globalme » Thu Apr 30, 2009 10:17 am
In my case password is blank , so in mine , statement would be
mysqlcheck --auto-repair asterisk -p""
OR
mysqlcheck --auto-repair asterisk -p
-
globalme
-
- Posts: 132
- Joined: Fri Mar 27, 2009 12:38 pm
by globalme » Thu Apr 30, 2009 11:49 am
Tried mysqlcheck --auto-repair asterisk -p"" but it get stuck at
enter password :
-
globalme
-
- Posts: 132
- Joined: Fri Mar 27, 2009 12:38 pm
by marcin » Thu Apr 30, 2009 12:23 pm
You have to put root password for mysql between quotes:
i.e. if mysql root password is gue12T7
the command should look :
mysqlcheck --auto-repair asterisk -uroot -p"gue12T7"
or
mysqlcheck --auto-repair asterisk -uroot -pgue12T7
in case of blank password use this:
mysqlcheck --auto-repair asterisk -uroot -p""
if there is no password for root use this :
mysqlcheck --auto-repair asterisk -uroot
-
marcin
-
- Posts: 95
- Joined: Wed Mar 18, 2009 8:00 am
-
Return to ViciDialNow - GoAutoDial
Who is online
Users browsing this forum: No registered users and 108 guests