Find all databases and login credentials

/ Published in: SQL
Save to your folder(s)

If you need to list all of the MySQL databases managed by Plesk along with their corresponding domains and login credentials, you can use this query:

Copy this code and paste it in your HTML
  1. SELECT AS domain_name,
  2. AS database_name, db_users.login, accounts.password
  3. FROM data_bases, db_users, domains, accounts
  4. WHERE data_bases.dom_id =
  5. AND db_users.db_id =
  6. AND db_users.account_id =
  7. ORDER BY domain_name;

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.