This article documents the usage of the Cpanel::MysqlFE::userdbprivs function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::MysqlFE::userdbprivs
This function outputs the MySQL database access privileges for a specific MySQL user on a specific MySQL database.
These returned checked or not checked.
<?cp MysqlFE::userdbprivs( % % % % % % % % % % % % ,ALLPRIVILEGES,SELECT,CREATE,INSERT,ALTER,UPDATE,DROP,DELETE,LOCKTABLES,INDEX,REFERENCES,CREATETEMPORARYTABLES) user=$FORM{'user'},db=$FORM{'db'} ?>
This example will output the status of a specific MySQL user's privileges for a specific MySQL database.
Copyright 2007 cPanel Inc.