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
Post a Comment