CraftCli\Command\DbPullCommand::testLocalCredentials PHP Method

testLocalCredentials() protected method

Test local database credentials
protected testLocalCredentials ( ) : boolean
return boolean
    protected function testLocalCredentials()
    {
        $mysqlCommand = (string) $this->makeMysqlCommand(MysqlCommand::class, $this->localCredentials, 'SHOW TABLES');
        if ($this->debug) {
            $this->output->writeln($mysqlCommand);
            return true;
        }
        exec($mysqlCommand, $output, $status);
        return $status === 0;
    }