help in connecting the sql server 2017 developer edition I have installed the sql server 2017 for non production environment in my PC.
It has installed successfully.
when connect using sqlcmd it was throwing an error login failed for login sa. it didn't have the asked for the creating user or anythings...
please find the command used to connect 

sqlcmd -S servername -U sa


Update:

I can't even log in using windows authentication.

Update2:

I have tried to access sqlcmd from command prompt i got the following error.


  Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : Named Pipes
  Provider: Could not open a connection to SQL Server [2]. . Sqlcmd:
  Error: Microsoft ODBC Driver 13 for SQL Server : Login timeout
  expired. Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : A
  network-related or instance-specific error has occurred while
  establishing a connection to SQL Server. Server is not found or not
  accessible. Check if instance name is correct and if SQL Server is
  configured to allow remote connections. For more information see SQL
  Server Books Online..
It sounds like one of the following things is happening:


The sa account is disabled


either explicitly, or because you're in Windows Authentication mode

You don't know the password to the sa account


Since this is installed locally on your PC, you should actually be able to connect with sqlcmd without any parameters to use "Trusted Connection" to authenticate you:

sqlcmd


Once you're in, you should be able to check the authentication mode using an approach like this one:

SELECT CASE SERVERPROPERTY('IsIntegratedSecurityOnly')   
WHEN 1 THEN 'Windows Authentication'   
WHEN 0 THEN 'Windows and SQL Server Authentication'   
END as [Authentication Mode]


If that returns "Windows Authentication," then you'll need to go through the process of switching to mixed mode outlined here: Change Server Authentication Mode

If the query above returned "Windows and SQL Server Authentication" then it's possible that you have just mistyped or forgotten the sa account password, or it's disabled for some other reason.  In that case, you can run this code (also included in the docs link above):

ALTER LOGIN sa ENABLE;  
GO  
ALTER LOGIN sa WITH PASSWORD = '&lt;enterStrongPasswordHere&gt;' ;  
GO