0
C# mysql database connection
am learning c# and am kind of stuck at how am to connect the mysql database to the my program. I just want a conntion method. eg. void connMethod (){ using(SqlConnection conn=new SqlConnection ) conn.ConnectionString="server=localhost; database =s_pos;password=;"; conn.open (); } I seem to get some server not found error.
5 Réponses
+ 5
try localhost ip 127.0
.0.1
0
Andrew please details a bit
0
please I can I my answers in this form
void connMethod (){
using(SqlConnection conn=new SqlConnection )
conn.ConnectionString="server=localhost;
database =s_pos;password=;";
conn.open (); }