Take the version phpMyAdmin-2.6.1.tar.gz as an example.
First unzip phpMyAdmin-2.6.1.tar.gz to /usr/local/apache2/htdocs.
Get the folder phpMyAdmin-2.6.1 and rename it to phpmyadmin, (this will make it easier in future operations).
Go to the phpmyadmin folder and open config.inc.php with the vim command.
That is, #vim config.inc.php.
Encryption only needs to modify two parts:
1. Find $cfg['Servers'][$i]['auth_type'] = 'config'; (line 83), Change config to http.
For example, mine is: $cfg['Servers'][$i]['auth_type'] = 'http';
2. Fill in the username and password of the database in the next two lines
For example, mine is: $ cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
MySQL encryption in Phpmyadmin is complete !
****************************************************** ****
There is one more thing that needs to be modified during the Phpmyadmin configuration process:
Find $cfg['PmaAbsoluteUri'] = ''; (line 39)
Fill in the absolute address of your server's phpmyadmin at the end
For example Mine is:
$cfg['PmaAbsoluteUri'] = 'http://10.10.19.167/phpmyadmin';
This completes the phpmyadmin configuration, easy! (Note: Different versions may be different)
The above introduces the phpmyadmin configuration phpmyadmin MySQL encryption configuration method, including the phpmyadmin configuration content. I hope it will be helpful to friends who are interested in PHP tutorials.