Quote:
I thought the most simple way to do this was to use MySQL client API in the client for my server and my server will do nothing but forward the data to the MySQL client.
|
If you want to implement it that way, why don't you send your request directly to the db server?
I think the idea of the assignment is to set up a db server and an application server so that the client doesn't have to know anything about the db.
Suppose you implement it like you suggest, you create SQL statements in your client code and send them to the app server that passes them to the db server. When you decide to change your db for some reason, you will have to change all of your code and upgrade every client.
When you let the app server do the specific SQL handling and you decide to change your db, you only have to change it on the server.
I'm not saying your suggestion doesn't work, but it's bad design. If you won't lose points because of that, go for it anyway because it IS the easiest solution.