• 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

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