Parameters needed to connect to a MySql Database using C# -


when want connect database using c# visual studio 2013, provide following parameters "connectionstring" using "mysqlconnection":

string server="localhost"; string database="database123"; string uid = "*****"; string password = "******"; string port = "3306"; 

but noticed if don't provide "database" or "port" works fine too. question should 1 provide establish proper connection? or considered sufficient info establish connection?

i use this.

sqlconnection connection = new sqlconnection("server=somthing; database=something; user id=******; password=******"); 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -