src/Command/Mysql/DbFindReplace.php
public function mysqlDbFindReplace(
        $search,
        $replace,
        $db,
        $user = 'root',
        $pass = '',
        $host = 'localhost',
        $port = null,
        $opts = ['format' => 'table', 'fields' => '']
    ) {
        $result = $this->taskMysqlDbFindReplace()
            ->search($search)
            ->replace($replace)
            ->db($db)
            ->user($user)
            ->pass($pass)
            ->host($host)
            ->port($port)
            ->hide($pass)
            ->run();

        if (!$result->wasSuccessful()) {
            $this->exitError("Failed to run command");
        }

        return true;
    }
public function mysqlDbFindReplace(
        $search,
        $replace,
        $db,
        $user = 'root',
        $pass = '',
        $host = 'localhost',
        $port = null,
        $opts = ['format' => 'table', 'fields' => '']
    ) {
        $result = $this->taskMysqlDbFindReplace()
            ->search($search)
            ->replace($replace)
            ->db($db)
            ->user($user)
            ->pass($pass)
            ->host($host)
            ->port($port)
            ->hide($pass)
            ->run();

        if (!$result->wasSuccessful()) {
            $this->exitError("Failed to run command");
        }

        return true;
    }
public function mysqlDbFindReplace ( $ search , $ replace , $ db , $ user = 'root' , $ pass = '' , $ host = 'localhost' , $ port = null , $ opts = [ 'format' => 'table' , 'fields' => '' ] ) { $ result = $ this -> taskMysqlDbFindReplace ( ) -> search ( $ search ) -> replace ( $ replace ) -> db ( $ db ) -> user ( $ user ) -> pass ( $ pass ) -> host ( $ host ) -> port ( $ port ) -> hide ( $ pass ) -> run ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { $ this -> exitError ( "Failed to run command" ) ; } return true ; }
Run find-replace on MySQL database

@param string $search Search string
@param string $replace Replacement string
@param string $db Database name
@param string $user MySQL user to bind with
@param string $pass (Optional) MySQL user password
@param string $host (Optional) MySQL server host
@param string $port (Optional) MySQL server port
@option string $format Output format (table, list, csv, json, xml)
@option string $fields Limit output to given fields, comma-separated

@return bool
Run find - replace on MySQL database