wp search-replace on database returns PHP fatal error: Array and string offset access syntax with curly braces is no longer supported

wp search-replace on database returns PHP fatal error: Array and string offset access syntax with curly braces is no longer supported

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