How to Create a Staging Site / Changing URL

In your new site, change the value of siteurl.
It should be in the first row of the options table in the database.
Then you should be able to access wp-admin on the new site. Then install this plugin: Better Search Replace.

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