How can I protect this file ( , This file have  a username and password  But it need to use for phpmyadmin
I am new for linux Thank you
Who is Participating?
steve918Connect With a Mentor Commented:
Here's my, notice that it says "MySQL password (only needed with 'config' auth_type)

$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
                                                    // with 'config' auth_type)
If your worried about visitors to the site, they will get a blank page if they try to load /MyAdmin/
If your worried about other shell account users,  just set the auth_type variable to cookie or http instead of config
by setting the auth_type...
you'll have to login each time you open MyAdmin, but you won't have to store any passwords in the config file.

The best way to protect your passwords are to keep them out of your config files altogether.
Avoid using "config" type of authentication for "$cfg['Servers'][$i]['auth_type']" because it will force you to input a password in
I will recommend the "cookie" or "http" type ... the "cookie" model is easier to setup
All Courses

From novice to tech pro — start learning today.