First of all, it is recommended that you check whether you have set up a series of security accounts, enter the command terminal of the Linux system, enter:
sudo /opt/lampp/lampp security
, and then a series of For account settings, you can set them all the way. The overall settings are as follows:
If set After completion (it is best to restart the lampp service first), if you still cannot access phpmyadmin through your account and password, you need to modify a file.
Open config.inc.php in the root directory of phpMyAdmin and modify it as follows:
$cfgServers[$i]['auth_type']= 'config';
Modify it to:
$cfgServers[$i]['auth_type']= 'cookie';
Save the file and visit phpmyadmin again. The account password can now be used.
As shown below:
Recommended related articles and tutorials: phpmyadmin tutorial
The above is the detailed content of How to set an access password for phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!