URGENT Mysql service won't start

All installation and configuration problems and questions

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

URGENT Mysql service won't start

Postby Cj4life24 » Tue Jun 12, 2012 8:00 pm

mysql service wont start i am getting an error that it cant start it is telling "MySQL connect ERROR: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)" HELP
cj4life24

ViciBox Redux 3.1.9

VERSION: 2.4-316a
BUILD: 110531-2009

Single Server
OpenSUSE Server 11.2

Vspace from NComputing for L130 Thin Clients

Intel I5-2310 Quad Core
Cj4life24
 
Posts: 43
Joined: Mon Apr 16, 2012 8:34 am

Re: URGENT Mysql service won't start

Postby Vince-0 » Wed Jun 13, 2012 1:31 am

Look in the mysql log (usually /var/log/mysqld.log) for the exact error.
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa

Re: URGENT Mysql service won't start

Postby striker » Wed Jun 13, 2012 3:41 am

www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: URGENT Mysql service won't start

Postby Cj4life24 » Wed Jun 13, 2012 8:37 am

Thanks so much for your replys..I was able to determine that it was just a lack of hard drive space. My next question is how can i just move the informaton to another location rather than deleting it. i have a lot of recordings in .wav files and some of the old ones can be deleted but how can i specifiy what ones to delete if there are 200 GB of .wav files half of wich i need to keep in the data base but the old one i could potentially pull out and store elsewhere if possiable...please help Linux is not my forte..Thanks
cj4life24

ViciBox Redux 3.1.9

VERSION: 2.4-316a
BUILD: 110531-2009

Single Server
OpenSUSE Server 11.2

Vspace from NComputing for L130 Thin Clients

Intel I5-2310 Quad Core
Cj4life24
 
Posts: 43
Joined: Mon Apr 16, 2012 8:34 am

Re: URGENT Mysql service won't start

Postby Vince-0 » Wed Jun 13, 2012 9:42 am

Use WinSCP from a windows desktop to view,copy,delete from your server file system using the console log in details. I usually remove the ORIG file containing the wavs from /var/spool/asterisk/ because it holds calls that have already been converted to Mp3. Read the Vicidial manuals and get some Linux basics down before you put a system into production.
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa

Re: URGENT Mysql service won't start

Postby Arative » Wed Jun 13, 2012 9:52 am

You can always set up an archive server to move the recordings off to vicidial system.
Arative
 
Posts: 38
Joined: Wed May 19, 2010 1:04 pm

Re: URGENT Mysql service won't start

Postby Acidshock » Wed Jun 13, 2012 6:16 pm

Quick way to automatically remove the original after conversion is to edit:
/usr/share/astguiclient/AST_CRON_audio_2_compress.pl
Add `rm "$dir2/$ALLfile"`; where I have it below. That will cause it to delete the file after it is converted to an MP3.


if ($MP3 > 0)
{
$MP3file = $FILES[$i];
$MP3file =~ s/-all\.wav/-all.mp3/gi;

if ($DB) {print "|$recording_id|$ALLfile|$MP3file| |$SQLfile|\n";}

`$lamebin -b 16 -m m --silent "$dir2/$ALLfile" "$dir2/MP3/$MP3file"`;
`rm "$dir2/$ALLfile"`;
$stmtA = "UPDATE recording_log set location='http://$server_ip/RECORDINGS/MP3/$MP3file' where recording_id='$recording_id';";
if($DBX){print STDERR "\n|$stmtA|\n";}
$affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query:|$stmtA|\n";
}
VERSION: 2.14-698a | BUILD: 190207-2301 | Asterisk:13.24.1-vici | Vicibox 8.1.2
Acidshock
 
Posts: 430
Joined: Wed Mar 03, 2010 3:19 pm

Re: URGENT Mysql service won't start

Postby okli » Thu Jun 14, 2012 8:09 am

It might be a good idea to check file size of $dir2/$ALLfile before deleting it.
Lame tends to crash, rarely but does, and the output mp3 file is 0 bytes or missing. In such cases one doesn't want the input wav file deleted.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 145 guests