Search and Replace in database: How to replace data in SQL dump file on Windows?
Give WPCLI’s search-replace command a try: https://developer.wordpress.org/cli/commands/search-replace/ WPCLI is cross-platform and the search-replace command handles serialized data.