There are 5 values need to change. From database.

wp_options: options named “siteurl” and “home”

wp_site

wp_sitemeta: the option named “siteurl”

wp_blogs: any entries in the “domains” column that have the old domain name

wp_#_options: Each sub-site will have sets of tables that correspond to the blog_id in the wp_blogs table. You need to go to the wp_#_options table, where # corresponds to the blog_id, and update the “siteurl” and “home” settings in that table.

Note: In most cases, you may/will need to update an entry in your WP-Config.php file. The code I would recommend taking a look at is the code snippet here:

define(‘WP_ALLOW_MULTISITE’, true);
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘mysite.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );

https://wordpress.stackexchange.com/questions/327424/how-do-i-change-the-multisite-url

The “siteurl” entry in the “sitemeta” table changes the location of the entire multisite installation, not just the microsite.

Sometimes you’ll get an error when you try to log into a microsite, even though you’re able to log into the network admin site. The error will be, you log into the microsite and the page refreshes and doesn’t take you to the dashboard but also doesn’t give you an error message. Or sometimes it will give you an error message saying that cookies are disabled in your browser (even though they’re not). If that happens, go to your wp-config.php file and add this line below the rest of the multisite settings:

define( ‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );

More information in the almightly WordPress Codex: https://developer.wordpress.org/advanced-administration/multisite/domain-mapping/