WP MultiSite: Can’t select database error after changing to new domain

Solved it! Problem was I needed to update the wp_blogs table with the proper domain and path.

error code: 523