The following command through sqllocaldb utility works for me.
sqllocaldb stop mssqllocaldb
sqllocaldb delete mssqllocaldb
sqllocaldb start "MSSQLLocalDB"
![enter image description here](https://i.stack.imgur.com/Vqiv6.png)
After that I restarted the sql server management studio, and it is successfully established connection through (LocalDB)\MSSQLLocalDB