I have writen a small chat server in java and a client in c# in unity3d.. You only neeed to enter a username and start chatting..

Now i want to write a register and login script and i wonder if i run a mysql database on localhost on my computer do a need a secure connection from server to database then. The server runs on the same machine as the database