phpmyadmin login error, cookies must be enabled Solution: 1. Save the configuration file [config.sample.inc.php] in the installation directory as [config.inc.php] and use it directly; 2. Modify the [config.default.php] file value.
phpmyadmin login error, cookie must be enabled Solution:
1. We will install phpMyAdmin directly through The configuration file config.sample.inc.php
in the directory is saved as config.inc.php
and used directly. that's right. However, there are a few points to note:
$cfg['blowfish_secret'] = 'cookie';
must be filled in. Generally, just fill in the cookie.
In addition, if mysql uses socket connection, don’t forget to modify the following line:
$cfg['Servers'][$i]['connect_type'] = 'socket';
Most people can modify the above step correctly, but only modify the config.inc.php in the root directory The file will not work. There is another file that needs to be modified, which is the config.default.php file in the libraries directory.
2. In the config.default.php file, what needs to be modified is:
$cfg['blowfish_secret'] = 'cookie';
The file is empty by default, and the same value as config.inc.php needs to be filled in here.
If mysql uses socket connection, you also need to modify the following two lines:
$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
This needs to be filled in according to your own mysql configuration content. If you don’t know, leave it blank and use the default mysql settings
$cfg['Servers'][$i]['connect_type'] = 'socket';
Refresh the phpMyAdmin login page and the problem is solved!
Related tutorial recommendations: phpmyadmin
The above is the detailed content of phpmyadmin login error, what should I do if cookies must be enabled?. For more information, please follow other related articles on the PHP Chinese website!