Here are few steps by which you can drive out your SQL database from recovery mode and perform action on it.
First step is to stop the SQL Services
Then change the location of log files
Start the Server services and makes databases offline
Place the log file in previous location
Now bring the SQL database Online
Within few clock pulse rate you can access SQL database and back to work.
SSMS Expert