I know that this question was asked a long time ago, and most people guessed it, but for those who did not, here is my solution:
Add the port number with the server name in the connection string
connectionstring = "server=server;Port=3306;User Id=UserNAme;password=password;Persist Security Info=True;database=DatabaseName;convert zero datetime=true";
user1339124
source share