You can display all users in MariaDB using the following steps:
1. Login to your MariaDB shell, using the command:
\`\`\`bash mysql -u root -p \`\`\` (You’ll need to replace “root” with your username if it’s different. You will be prompted to enter your password.)1. Use the following SQL statement to select all users from the MySQL database:
\`\`\`sql SELECT User, Host FROM mysql.user; \`\`\`1. Press `Enter` to run this query and list all MariaDB users. The results will be displayed in your shell.