asp.net connection string mysql server code example

Example 1: connect to mysql c# connection string C#

Server=myServerAddress;Port=1234;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Server=serverAddress1, serverAddress2, serverAddress3;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;Encrypt=true;

Example 2: connection string mysql

Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

Tags:

Misc Example