Image paths wrong after migrating with wp-migrate-db-pro media files add-on

I recommend using Search & Replace DB, a free tool by Interconnect, to replace any instances of the host name in the database. It will handle setting the serialized data correctly for you.

First make sure that your wp-config is for the right database.

You need to go into your new database and change the site url and home url to the new address. I suggest NOT doing this through phpmyadmin though as it will cause some problems.

Go get this tool: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Upload it into your www/ folder. (I usually rename the search and replace folder to SRDB.)

now navigate to your site with the SRDB at the end. (www.example.com/SRDB)and the top two lines you’ll see a search field and a replace field. (if you get a db connection error here, double check the wp-config to ensure that it has the right credentials). In the search place your old site address: /wordpress/wp-content/uploads/…/

in the replace field place your new url /app/uploads/2018/…/

hit live live run.

ONLY do this after ensuring you’re on your new url and that it’s loaded into your new database.

Remove the SRDB folder when you are done.