LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   starting mysql server using perl script (https://www.linuxquestions.org/questions/linux-newbie-8/starting-mysql-server-using-perl-script-727225/)

vinaytp 05-20-2009 03:44 AM

starting mysql server using perl script
 
hi all....

I want to know how to start mysql server using perl script....
can anyone help me please....

PMP 05-20-2009 05:32 AM

You can do a

#!/usr/bin/perl

system(q[/etc/init.d/mysql stop]);


or

use backticks
my $status = `/etc/init.d/mysql stop`;

check for status to know if the stopping is successful or not


All times are GMT -5. The time now is 06:20 AM.