phpMyAdmin User accounts error

Post Reply
User avatar
geniusconsult
Posts: 5
Joined: Wed Jun 28, 2023 10:51 pm

Login to phpMyAdmin as root user:
click on User accounts - throws error:

Code: Select all

Not enough privilege to view users.
Env version: Fresh install on Debian 11, MariaDB 10.5.19, phpMyAdmin 5.0.4deb2+deb11u1

Tags:
User avatar
geniusconsult
Posts: 5
Joined: Wed Jun 28, 2023 10:51 pm

Also this can bellow be cause, but I have MariaDB and phpMyAdmin on other servers, and not getting that error.

Since 10.4 MariaDB uses mysql.global_priv and older versions use mysql.user tables to store user information
Last edited by geniusconsult on Thu Jun 29, 2023 12:23 am, edited 1 time in total.
User avatar
myVesta
Site Admin
Posts: 963
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

How did you even enable "root" login to phpMyAddmin, since it's disabled by default?
User avatar
geniusconsult
Posts: 5
Joined: Wed Jun 28, 2023 10:51 pm

myVesta wrote: Thu Jun 29, 2023 8:32 am How did you even enable "root" login to phpMyAddmin, since it's disabled by default?
I did not do anything special :)
root@localhost is not disabled - you can use shell cli access with that user.

Just logged into phpmyadmin with root user and password from .my.cnf file
phpmyadmin use localhost and root@localhost is not disabled ;)

Anyway, that is not issue - want to get root user to have all permissions :)
I even installed phpmyadmin 5.2.1 from backports repo, but nothing changed. Still can not see User accounts.

So, main thing is: myVesta create 2 db users, one for localhost other for '%' hostname, and I don't like those wildcard entries. So want to lock those users as I don't want to allow remote db access at all.

PS. consider to add some kind of rename for /phpmyadmin/ URL (ask for that during install, same as token for admin url)
jdl
Posts: 3
Joined: Sat Jul 08, 2023 3:16 pm

how to fix this ?
Post Reply