src/DlcDoctrine/Service/Setup.php
public function getDbConnectionCmd()
    {
        $dbParams = $this->getDbConnectionParams();
        
        $dbConnectionCmd = 'mysql -u ' . $dbParams['user']
                         . ' -h ' . $dbParams['host']
                         . ' -P ' . $dbParams['port'];
        
        if (strlen($dbParams['password']) > 0) {
            $dbConnectionCmd .= ' -p"' . $dbParams['password'] . '"';
        }
        
        return $dbConnectionCmd;
    }
public function getDbConnectionCmd()
    {
        $dbParams = $this->getDbConnectionParams();
        
        $dbConnectionCmd = 'mysql -u ' . $dbParams['user']
                         . ' -h ' . $dbParams['host']
                         . ' -P ' . $dbParams['port'];
        
        if (strlen($dbParams['password']) > 0) {
            $dbConnectionCmd .= ' -p"' . $dbParams['password'] . '"';
        }
        
        return $dbConnectionCmd;
    }
public function getDbConnectionCmd ( ) { $ dbParams = $ this -> getDbConnectionParams ( ) ; $ dbConnectionCmd = 'mysql -u ' . $ dbParams [ 'user' ] . ' -h ' . $ dbParams [ 'host' ] . ' -P ' . $ dbParams [ 'port' ] ; if ( strlen ( $ dbParams [ 'password' ] ) > 0 ) { $ dbConnectionCmd .= ' -p"' . $ dbParams [ 'password' ] . '"' ; } return $ dbConnectionCmd ; }
Returns the mysql connection command

@return string
Returns the mysql connection command