I learned that before installing SQL server management studio, you have to install database engine first. It is always difficult to connect to a local server on a local machine after installing of SQL Server Management. Make sure that SQL service is running or go to cmd and create a database with a localdb or local database engine installed before management studio is installed. Then when logging into a server in SQL server management, when it prompts you to enter the server name, just enter (localdb)/databaseYouJustCreatedName and use Windows credentials to log in. Talaaaaa you are in.