connect and add server

1
Hi, how i connect my gameserver with mysql workbench?
i insert the right date
ip gameserver, port, username and password of the file configlocal_cs
but the connection doesnt run

another question, if i have a dinamic ip, can i add the server in the feudal tools? or is uselles cause the change of the ip every connection?
this is the problem too for the workbench?

last question.
i need open the port in my router? 14400 14402 3306 ? or usually is not a must?

tnx
cron