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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34dfc-34316.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34dfc-34316.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?