If you change the management VLAN from 1 to something else, you'll need to physically connect to it via a port that's on that VLAN.
If that port is an untagged member of that VLAN (with corresponding PVID), you'll just need to connect from any standard device (without VLAN tagging/awareness) on that port.
If it's a tagged member of the VLAN, you'll need to make sure your device is set to be tagged on that VLAN and connect from that port.
When you reboot the switch, it reverts to the last saved configuration.
------------------------------
BMS
------------------------------