Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpMyAdmin security warning for configuration files [closed]

Tags:

php

phpmyadmin

Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user 'root'.

I got this when I opened up phpmyadmin ...

Any way to fix this?

like image 652
Vishal Sharma Avatar asked Jan 29 '12 15:01

Vishal Sharma


3 Answers

It's just a warning to show that there is no password for the default user root. If you want to set password for root:

  1. Open phpmyadmin interface
  2. Click "Users" tab
  3. Select user "root"
  4. Edit Privileges
  5. Change password
like image 51
Sabari Avatar answered Nov 11 '22 22:11

Sabari


Sure, set up a password for user root.

You can do that two ways, using the console and typing something like:

mysqladmin -u root password NEWPASSWORD

Or you can go through phpMyAdmin interface, go to users, select root and change it's password.

like image 5
Frankie Avatar answered Nov 11 '22 22:11

Frankie


The message simply warns you that you are using the default MySQL user (username root with no password) to get complete acces to MySQL server.

Just change your MySQL server root password and edit your PhpMyAdmin configuration to include the new password.

If you get this on a local machine not accessible from outside (i.e. your personal local development server), you should not worry about that.

like image 2
lorenzo-s Avatar answered Nov 11 '22 21:11

lorenzo-s