0

i am using netbeans and MySQL. i made an inventory application with a server host name "local host:3306". how do i distribute it to other computer? should i change the server host in mysql?

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by mKorbel
0

you have to replace server IP addresh with that localhost

how do i replace server IP address?

0

can you show your code
and i aso give me ip addresh of server where all the database are stored

0

for clearnes, you had applications that runs on Local PC and with MySql instaled on same PC, then JDBC Connection "blablabla *** localhost:3306 ***blablabla" is correct, because your aplications loads and save data stored on Local PC,

then

you have put your database on some server, and for opening Connection you have to change localhost to servers IP addres or DNS (if is DNS allowed)

for example server where is MySql instaled has IP address 192.21.10.184 and DNS MySqlServer and runs on port 3306, then must be changed to

192.21.10.184:3306

or

MySqlServer:3306
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.