I have a MySQL Server which is inside SGX and serves the Clients which submits sql queries to the server to run the queries inside the intel SGX. My question is that which protocol should be used for connection of these two machines (sql server(with sgx) and sql client)?
You should use TLS to create a secure channel between your server and your client. If data are transmitted in clear, then SGX becomes useless.