When a cloud project is deployed, how to access the user's own database?

has such an idea:

  1. the front-end and back-end codes of the project are deployed in a CVM of your own.
  2. your own CVM stores basic database data;
  3. users choose my server to store data or the server they buy to store data.

I don"t know if there is a master with specific implementation experience, give me some advice on how to solve the problem, and the laravel+mysql+redis currently used at the back end of the project


Yes, you can set a configuration to configure the database address and port, so that's fine

Menu