When using phpmyadmin towards
MySQL < 40102 and the username contains an "-" i
get "No Privileges" on the main.php page for create
databases.
I found the error in
libraries/check_user_privileges.lib.php on row 158.
($rs_usr = PMA_DBI_try_query('SHOW GRANTS FOR ' .
$mysql_cur_user . ';', $dbh, PMA_DBI_QUERY_STORE);)
The $mysql_cur_user needs to be quoted for it to work
if it contains a "-".
My solution is to change $mysql_cur_user to :
PMA_convert_using(PMA_sqlAddslashes($mysql_cur_user),
'quoted')
As its beeing done earlier in the code :)
Logged In: YES
user_id=210714
Merged your fix, thanks.