• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue User can not create new database (Using Multitenancy)

Why do you try to create a database in the phpMyAdmin interface instead of the correct way through the Plesk interface?
 
Why your user can't create a needed database for his own store in his Plesk Control Panel?
The idea of website is that any use can register and make this own subdomain with this own database. Using multitenant user can has own store to manage, so as Administrator I should see all the databases that created automatically using tenant.
 
Also how to access all databases of the website. In Databases section in Plesk I only can see one database like in screen shot.
1650925534441.png
But in Mysql command when running "Show databases" command , I can see all databases.
1650925594844.png
 
It appears that you are trying to create your own control panel. This won't work with Plesk (or any other modern control panel).

If you are using Plesk then ALL operations such as creation of domains/subdomains, databases, database users, mail accounts etc. _MUST_ be made from Plesk, otherwise Plesk won't know about your modifications.

Think of Plesk like the "master brain" on your server: It holds the "truth" (aka. the master configuration) in its own database and will then configure the services on your server (config files etc.) using this information. Any modification in Plesk will trigger the configuration updates on the server.
This process won't work the other way around: Plesk will not pick up modifications of the configuration that you've made manually or that were created by another script.

However, the key feature of Plesk is exactly what you're trying to do: It allows each of your tenants to configure their own users/databases/subdomains etc.
You are the admin of the server and you create customers. Those customers then can manage their domains from Plesk without any actions from you. Isn't that exactly what you want? So why don't you use this key feature of Plesk? You can even create resellers that in turn will manage their own customers.
Have a look at this, it will explain how all of this works: Customers and Resellers
 
BTW, API might be an option. You'd need to write your own sanity and permission checks.
 
Back
Top