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?

Recommended Answers

All 4 Replies

you have to replace server IP addresh with that localhost

you have to replace server IP addresh with that localhost

how do i replace server IP address?

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

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.