wpcli search-replace fails; reports that mysqli needs to be installed

There was nothing wrong with the host configuration.

The php version being used by the shell was different from the php version that the webserver passes requests to.

The problem was solved by installing a mysql extension for the php version that the shell runs.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)