Answers for "connecting to my cloud sql server with c#"

SQL
0

connecting to my cloud sql server with c#

var csb = new MySqlConnectionStringBuilder
{
    Server = "Google Cloud SQL IP address",
    UserID = "Your UserName",
    Password = "Your Password",
    Database = "Your Database/Schema Name",
    SslCert = @"C:\Path\To\client-cert.pem",
    SslKey = @"C:\Path\To\client-key.pem",
    SslCa = @"C:\Path\To\server-ca.pem",
    SslMode = MySqlSslMode.VerifyCA,
};

using var connection = new MySqlConnection(csb.ConnectionString);
connection.Open();
Posted by: Guest on March-24-2021

Code answers related to "connecting to my cloud sql server with c#"

Code answers related to "SQL"

Browse Popular Code Answers by Language