MySQL Forums
Forum List  »  MySQL for Visual Studio

Cant connect to MySQL Server 8.0 with connection string
Posted by: Gabor Szalma
Date: April 27, 2020 01:31AM

I'm making a chat application in web api ASP.NET in VS Code. I used the SSMS to store datas, but now i need to change to MySQL server. My connection string is looks like this:
"Server=DESKTOP-XXXX;Database=chatappdb;user id=root;password=123456"
This always say, that Login failed for user 'root'. Because every time my program want to connect to SSMS. The SSMS is using server name DESKTOP-XXXX and i checked in MySQL workbench that the localhost is using the same DESKTOP-XXXX name. How can i modify or where can I check the server name properly in MySQL Workbench?

Options: ReplyQuote

Written By
Cant connect to MySQL Server 8.0 with connection string
April 27, 2020 01:31AM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.