Using networking solutions with AWS or Playfab servers with databases

I’m planning a multiplayer action game(like for honor) for my school project with using Mirror-Networking or photon pun 2 but i need a dedicated server like AWS or Playfab. And also i need to use database like mysql. I just have two question.
1- In this situation databases conneting with servers right? and how?
2- Which combination should i use pun-aws, mirror-aws, pun-playfab, mirror-playfab

edit:
or more options for networking and server?

You wouldn’t want the client machines to access the MySQL, but they could if you don’t care about security since you would have to embed the connection string/password into the unity code for the machines.

If you just wanted the server to use the MySQL (which would be the correct usage) then you just don’t open the port in your firewall, and the MySQL should only allow local connections. In that case, any code reading/writing to the DB should have an IF statement preventing client code from trying to use it, and you need to think about this.

Playfab has GameServers 2.0 which is a spawned server instance and probably not what you think it is. Playfab’s typical use is for authentication, virtual currency, and you can store player data for an authenticated user similar to using a database - this is the main Playfab functionality and not related to the GameServers 2.0 feature.

I think you want to use AWS which allows you to run a Windows server, run your dedicated instance of your game, and install MySQL on it.

It seems like a lot of work for a school project, and not sure if you understand how much work it takes to build all of that. Just becoming familiar with the multiplayer networking will take time.