Created
November 4, 2013 14:36
-
-
Save siliconmeadow/7303365 to your computer and use it in GitHub Desktop.
To find the database names, database usernames and passwords which belong to a database in Plesk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT domains.name, data_bases.name, db_users.login, SUBSTRING(accounts.password, 1) | |
FROM domains, data_bases, db_users, accounts | |
WHERE domains.name LIKE '%<domain.dom>%' | |
AND db_users.account_id = accounts.id | |
AND db_users.db_id = data_bases.id | |
AND data_bases.dom_id = domains.id | |
ORDER BY data_bases.id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment