https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04
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.

×
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 config.inc.php

$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.

Regards,
Alex

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.
Edit:
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.

Submit an Answer