Imagine the following scenario. You're running a social media platform built with PHP7/MySQL as a PaaS (Platform as a Service), with lots of companies using the same solution. A big company wants to have a white-label solution of this, and import all of their customers into this solution.
Now you have a big problem, because this company doesn't want anyone to have access to their data. On the other hand, you don't want to let the customer host everything themselves since that would give them your source code.
One solution? Continue delivering the platform as PaaP, but with the platform talking directly to a customer-hosted MySQL database. However, this still makes it possible for you as a platform owner to steal their data.
Is it any possibility for the customer to limit queries or build any safeguards so that they can host the database, but also prevent us from stealing their data?