Trying to connect to a mysql database using JDBC automatic driver loading with syntax that requires the following: jdbc:subProtocolName:databaseURL
I know how to work it with a local host that's providing the mysql server, but I haven't done this remotely, and I want to get it right the first time, rather than coding my application and not being able to set breakpoints in the .xml file etc and confusing the source of other issues I might be having.
So far I have: "jdbc:mysql:[url???]:3306/dbname?autoReconnect=true"
Is it simply the ip address of the server, or is it myusername@[ipAddressofServer], or something else entirely? It doesn't sit with me that it would be name@localhost:[port#] because that would indicate the server resides locally. I've seen things online that say to use the 'server name' here. Is that equivalent to the hostname? Example would be great that doesn't involve mysql running on localhost. Thanks!