Home  >  Article  >  Database  >  How to encrypt access to phpmyadmin

How to encrypt access to phpmyadmin

尚
Original
2019-12-13 16:12:042250browse

How to encrypt access to phpmyadmin

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, and enter: sudo /opt/lampp/lampp security

Then a series of account settings will appear. You can set them all the way. The overall settings are as follows:

XAMPP: Quick security check...

XAMPP: Your XAMPP pages are NOT secured by a password.

XAMPP: Do you want to set a password? [yes] yes (1)

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Password protection active. Please use 'lampp' as user name!

XAMPP: MySQL is accessible via network.

XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes

XAMPP: Turned off.

XAMPP: Stopping MySQL...

XAMPP: Starting MySQL...

XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!

XAMPP: Do you want to set a password? [yes] yes

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Setting new MySQL pma password.

XAMPP: Setting phpMyAdmin's pma password to the new one.

XAMPP: MySQL has no root password set!!!

XAMPP: Do you want to set a password? [yes] yes

XAMPP: Write the passworde somewhere down to make sure you won't forget it!!!

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Setting new MySQL root password.

XAMPP: Setting phpMyAdmin's root password to the new one.

XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.

XAMPP: Do you want to change the password? [yes] yes

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Reload ProFTPD...

XAMPP: Done.

If after setting up (it is best to restart the lampp service first), you still cannot access phpmyadmin through the account and password, then you need to modify a file.

Open config.inc.php in the root directory of phpMyAdmin and modify it according to the following lines:

Modify $cfgServers[$i]['auth_type']= 'config'; Into:

$cfgServers[$i]['auth_type']= 'cookie';

Save the file and re-visit phpmyadmin to use the account password.

As shown below:

How to encrypt access to phpmyadmin

Recommended learning: phpmyadmin tutorial

The above is the detailed content of How to encrypt access to phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn