This may be more of a mysql question than a java question, but I will ask anyway.
I have a TestMySQL class which goes through all the necessary steps to connect java to mysql, but I want to connect it to a database which is configured to be on localhost on my server. When writing php, I just use localhost as the server, but is there a way to access it from my computer using a java program such as this?

Thanks