Report this

What is the reason for this report?

How to allow root login to phpmyadmin while keeping rng password

Posted on May 28, 2020

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.