• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Can/should I set a password for the MariaDB "root" user (not "admin")?

King555

Regular Pleskian
Server operating system version
Ubuntu 18.04.6 LTS x64
Plesk version and microupdate number
Plesk Obsidian 18.0.49 Update 1 web admin edition
When I view the user list of MariaDB via PhpMyAdmin, there are – among others for the individual databases, of course – the admin user created by Plesk (with the password which is in the file /etc/psa/.psa.shadow) and a user called root without password.

I cannot login with root via PhpMyAdmin. I guess it's because a login with no password is disabled. But I can login via "mysql -uroot" at the console. Although I'm the only SSH user, it feels like a security risk when there is no password.

So my question is: Can I change the password or does Plesk rely on a password-less root user for MariaDB?
 
On a default Plesk installation, the database does not know the "root" user. It uses a user called "admin". You should not allow logins to your database without password.
 
Thanks. Any ideas why I have the root user then? It was a minimal installation of Ubuntu and then I just installed Plesk. Should I delete the root user? I never used it.
 
You can keep the root user, but you should enable password requirement when your database server starts.
 
Back
Top