Doubts about how to migrate WordPress from local to online server using Search and Replace Tool script

What you need to do is simple.
Place the file in the root of the website.
Access this file via web browser.
For example. type – www.yoursite.com/searchreplacedb2.php

In the page, enter your database details, including username and password.
Also, specify your localhost http address, which in most cases is localhost

For example, in my testing server, my development files are usually in subfolders, so my link in local host is, localhost/site-1/

Likewise, enter your localmachine server url (localhost) and enter the new domain name there, i.e. yoursite.com

Select all the tables.

and press go. thats it…