method getUsers documentation in bbn\Db\Languages\Mysql
function(string $user = '', string $host = '')
{
if ($this->check()) {
$cond = '';
if (!empty($user) && bbn\Str::checkName($user)) {
$cond .= " AND user LIKE '$user' ";
}
if (!empty($host) && bbn\Str::checkName($host)) {
$cond .= " AND host LIKE '$host' ";
}
$us = $this->getRows(
<<getColArray("SHOW GRANTS FOR '$u[user]'@'$u[host]'");
foreach ($gs as $g) {
$q[] = $g;
}
}
return $q;
}
return null;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions