USE [YOUR_DATABASE_NAME]This will set the store to be open, but the setting's closed value is still stored in the cache. To clear the cache, open Web.config and add a space and save the file. Store should now be open for access to the 'Forgot password?' link.
GO
UPDATE [Setting]
SET [Value] = 'False'
WHERE [Name] = 'storeinformationsettings.storeclosed'
GO