How do I Fix Login failed for user ''. for Mac apple silicon download azure SQL Server

blouis 0 Reputation points
2024-04-23T19:26:01.33+00:00

've been trying to install azure sql for the past 3 weeks and eep getettign this error message. I deep dived the web for answers but none have suffice. Can you help, I'm trying to use sql for my class and business. I know it's telling em the username I wrong but it's literally the user name I used to run docker and on my laptop. I tried localhost too and that went no where.

Screenshot 2024-04-23 at 2.51.21 PM

Screenshot 2024-04-23 at 3.20.21 PM

Azure SQL Database
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,686 Reputation points
    2024-04-23T19:37:09.56+00:00

    as the sqlserver is using a self signed ssl certificate, you need to enable "Trust server certificate" or disable encryption. Once you trust the certificate a login attempt can be made and the name/password will be validated.

    0 comments No comments

  2. Amira Bedhiafi 15,596 Reputation points
    2024-04-23T19:49:37.73+00:00

    Based on the documentation, this error occurs when you try to make an encrypted connection to SQL Server using a non-verifiable certificate. This could happen in the following scenarios:

    User's image

    How to resolve it ?

    If you intentionally use either a certificate from a non-trusted authority or a self-signed certificate to encrypt connections to SQL Server, you can use one of the following options:

    For scenario 1, add the certificate authority to the Trusted Root Certification Authorities store on the client computer initiating encrypted connection. To do this, complete the Export the server certificate and Install the root certificate authority (CA) on the client machine procedures listed in the next few sections in that sequence.

    0 comments No comments