SQL server connection string
By Emma Johnson •
Is it possible to somehow get connection string to my SQL server ? It is running localy, on the same computer as my app which need to use the sql server do.
So far the application has been running on windows, with connection string :
Data Source=JOHN-PC\\SQLEXPRESS01;Initial Catalog=knihovna;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False; 2 1 Answer
From mysql documentation:
"ConnectionStrings": { "DefaultConnection": "server=127.0.0.1;user id=root;password=pass;port=3306;database=blog;" }
You will obviously have to replace the password, username and database to suit your needs.
3