- Home /
Question by
james 6 · Apr 12, 2011 at 06:09 PM ·
databaseconnectionsql
trouble connecting to mysql server
hi need to connect to a mysql server i have set up on godaddy.com
my code is
var dbcon : IDbConnection; //port is 3303 var connectionString : String = "Server=xxxxx.xx.xx.x; Uid=lxxxx; Pwd=xxxx; Database=lxxx;";
dbcon = new SqlConnection(connectionString); dbcon.Open();
however my connection is rejected, i suspect i need to put in a port number.can anyone tell me how would i specify a port number in my connection string?? thx
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613122324im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Sql Server Compact 4.0 error 2 Answers
parameter error in microsoft SQL connection with unity3d 1 Answer
Can't connect from Unity 3.1 to SQL Server Express 8 Answers
How to integrate SQL database in game? 1 Answer
SqlConnection Error con.Open() 0 Answers