Get help with the Photos app on your Mac - Apple Support
The above link describes indirectly how to move an entire library to a different drive, and then to open that library again if the link become disconnected.
The part below is modified from a section on this document.
Create a new Photos library (or open one that has been moved to a new drive):
1. Quit Photos.
2. Press and hold the Option key while you open Photos.
3. In the dialog that appears, click Create New.
4. Give your new library a name, then click OK. Note whether Photos opens successfully with this new library.
To open a different Photos library, quit Photos. Then open it again while holding the Option key, select your other library, and click Choose Library.