• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

MySQL CLI Question

Michael MacDonald

Basic Pleskian
I would like to use CLI to extract from MySQL a list of all user accounts and associated domains.

Does anyone know this command?

Thank you in advance.
 
Try to use something like:

mysql> select mail_name,name from mail left join domains on mail.dom_id = domains.id inner join accounts where mail.account_id = accounts.id order by name asc;
 
Back
Top