Home > Database > phpMyAdmin > phpmyadmin login error, what should I do if cookies must be enabled?

phpmyadmin login error, what should I do if cookies must be enabled?

coldplay.xixi
Release: 2020-07-21 14:44:53
Original
3401 people have browsed it

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, what should I do if cookies must be enabled?

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';
Copy after login
Copy after login

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';
Copy after login
Copy after login

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';
Copy after login
Copy after login

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';
Copy after login

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';
Copy after login
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template