wordpress image url wrong in database

Solution:1

Try using this plugin,

https://wordpress.org/plugins/velvet-blues-update-urls/

Update GUID’s and urls from old to new.

Solution:2

As per my knowledge, when wordpress site is migrated to other domain. By changing these two row values in database table wp_options

  1. select option_value from wp_options where option_name=”site_url”
  2. select option_value from wp_options where option_name=”home”

All rest of urls in database tables will be changed automatically, except urls in post_content column in wp_posts table.

As per your query, above method is not working.

Alternate option: https://wordpress.org/plugins/search-and-replace/

Above plugin will automatically search for given string and replaces. Make sure please take backup of your database before processing.

Caution: Do not change GUID value manually. If it so also, it doesn’t work.