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

javascript - How to process users in one specific order using map o each function? -

javascript - Linking from page A to a specific iframe on page B -

java - Two interface have same method name with different return type -