Server spec is very much dependent on how you are planning to deal with the queries and the size and complexity of them. You need to give a lot more information about your plan for how the game works. Are you using a REST base interface, PHP scripts or RDC to connect to the server or something else? If you are trying to directly connect to the MySQL database using JDBC I can tell you straight off that it won't work.