How to list databases with their subscription/domain/owner using a SQL query in Plesk

Comments

1 comment

  • Avatar
    NetVicious

    Same command but showing the databaser server. A must have if you have external database servers:

    plesk db "select db.name as 'Database', d.name as 'Subscription',c.pname as 'Owner',c.login as 'Customer Username', dbs.host as 'Database Server' from data_bases db,domains d,clients c,DatabaseServers dbs where d.cl_id=c.id and db.dom_id=d.id and db.db_server_id=dbs.id"

    0

Please sign in to leave a comment.

Have more questions? Submit a request