Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear all,

I am a new comer in write C++. I have a stupid question want to ask!

I have a project to update customer information in MySQL server.

A MySQL server contains some users information.

A Service server connected to MySQL server.

Few client connect to Service server (update customer information in MySQL server).

I want to know why need Service server as a media to receive request from client and

query to MySQL server, at last receive answer from MySQL server and send answer to client.

Why not just write client program direct connect to MySQL server, sent query and receive answer direct from SQL server and finally install these client to 10 or more PC ?

If we actually need a Service server, what is the function it performs?

Is there any sample illustrate how a client want to update a customer detail through Service server to MySQL server and MySQL server sent back the latest detail of customer in MySQL server through Services server to client?

Sorry for my lack of knowledge!!

Thanks all !
Posted
Comments
Richard MacCutchan 14-Oct-15 4:17am    
You should ask your project leader. We have no idea why the project was designed in this way.
Member 12056928 14-Oct-15 11:18am    
Dear Richard,

I am so happy to have your reply. I am so sorry that I have to tell you I am the project leader.

The project is just my idea, as I say it before, I am flash in writing Visual C++, I just learn how to direct connect to MySQL using one to two hours.

After I read more book and search some more information on writing in network environment, I found that I have some stupid question that I do not understand.

Such that I want to make it clear before I going to drill down.

Would you mind help to solve my question?

Best regards,

MAKMAK

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900