Cpanel::MysqlFE::listusers

This article documents the usage of the Cpanel::MysqlFE::listusers function in relation to the cPanel interface. This tag can be used inside cPanel pages.


SYNOPSIS

Cpanel::MysqlFE::listusers


DESCRIPTION

This function will list all MySQL users associated with a domain / account.


VARIABLES

INPUT

NONE

OUTPUT

dblist (string)
Array of databases the user has access privileges for.

shortuser (string)
Username of MySQL user. Format: mysqluser

user (string)
Full username of the MySQL user. Format: accountuser_mysqluser

db (string)
Database the user has access privileges for. Format accountuser_dbname


EXAMPLES

<?cp MysqlFE::listusers(% ,user, dblist: [table] : [tr][td]%[/td][/tr]: [/table], db) ?>

This example will output the full usernames of all MySQL users associated with an account as well as rows of a table containing the databases they have access to.


COPYRIGHT

Copyright 2007 cPanel Inc.