Home  >  Article  >  Database  >  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
coldplay.xixiOriginal
2020-07-21 14:44:533259browse

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';

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!

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