diff --git a/xCAT-server/sbin/mysqlsetup b/xCAT-server/sbin/mysqlsetup index 8a7c3cf1c..47cadc930 100755 --- a/xCAT-server/sbin/mysqlsetup +++ b/xCAT-server/sbin/mysqlsetup @@ -154,7 +154,7 @@ $::mysqlrunning = 0; $::xcatrunningmysql = 0; my $cmd = "ps -ef | grep mysqld"; my @output = xCAT::Utils->runcmd($cmd, 0); -my $mysqlcheck = "--datadir"; # see if really running +my $mysqlcheck = "mysql.sock"; # see if really running if (grep(/$mysqlcheck/, @output)) {