I checked the wp_options table and looked at both home and site URLs. They both had the www so I didn’t make any changes.
Both the wp_site and wp_blogs didn’t have www so I added it to both.
Now when I go to the network admin I get “Error establishing a database connection”. It doesn’t have the www in the link and if I add the www it redirects without the www and the error above comes up.