Skip to content

Commit a44d812

Browse files
committedJan 7, 2012
Use service for shutting down and starting mysql.
1 parent 58f35c3 commit a44d812

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎wre/lib/WRE/Mysql.pm

+2-4
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ sub start {
209209
my $count = 0;
210210
my $success = 0;
211211
my $config = $self->wreConfig;
212-
my $host = WRE::Host->new(wreConfig => $config);
213-
my $cmd = "mysql.server start --user=".$config->get("user");
212+
my $cmd = "service mysql start";
214213
`$cmd`; # catch command line output
215214
while ($count < 10 && $success == 0) {
216215
sleep(1);
@@ -238,8 +237,7 @@ sub stop {
238237
my $count = 0;
239238
my $success = 1;
240239
my $config = $self->wreConfig;
241-
my $host = WRE::Host->new(wreConfig => $config);
242-
my $cmd = "mysql.server stop";
240+
my $cmd = "service mysql stop";
243241
`$cmd`; # catch command line output
244242
while ($count < 10 && $success == 1) {
245243
sleep(1);

0 commit comments

Comments
 (0)
Please sign in to comment.