jdbc:mysql problem

Hi, anyone can tell me, how can different clients on a LAN network can connect to server database? In below simple code, "localhost:3306" is server ip or not? wat url client must be insert for connection to server database?

staticprivate String url ="jdbc:mysql://localhost:3306/BOOK";

try

{

Class.forName("com.mysql.jdbc.Driver");

conn = DriverManager.getConnection(url,"root","123456");

}

[686 byte] By [jiong_ronga] at [2007-11-27 10:06:41]
# 1
localhost is a "special" hostname that means "this machine". You need to replace that with the real hostname of the machine where the DB is running.
masijade.a at 2007-7-13 0:43:05 > top of Java-index,Desktop,Core GUI APIs...
# 2
next time pls. post in JDBC forum.you need to specify the locahost name of the server or its ip address to connect to the DB.e.g.String url = "jdbc:mysql://192.168.1.1:3306/myDB"
Yannixa at 2007-7-13 0:43:05 > top of Java-index,Desktop,Core GUI APIs...