How to allow root login to phpmyadmin while keeping rng password

Posted May 28, 2020 1.3k views
MySQLPHPLAMP StackPHP Frameworks
I need to setup phpmyadmin to allow root login in my OneClick app template.
However the above linked page doesn’t help, as it requires I give all new instances the same root password for phpmyadmin.
This would leave the databases in the instances of the users of my app vulnerable to intrusion.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hello, @jadianradiator

You should be able to login as the MySQL root user in phpMyAdmin unless AllowRoot is set to false in the

$cfg['Servers'][$i]['AllowRoot'] = FALSE;

If you want to enable the root login you need to set this to TRUE

You’re not forced to set the exact same password for each username.


I’ve tried that, doesn’t work.
Still had to use the guide I referenced, which is the only thing I’ve found that works.
I thought I did at any rate.
Will try again to double-check.
Edit2: iirc when I tried it didn’t have that option, and did nothing when I manually added it in.