Home > Backend Development > PHP Tutorial > phpmyadmin出现“令牌不符”错误怎么办

phpmyadmin出现“令牌不符”错误怎么办

PHPz
Release: 2020-09-04 16:49:05
Original
2662 people have browsed it

phpmyadmin出现“令牌不符”的解决办法:首先找到并打开“common.inc.php”文件;然后添加代码“$token_mismatch = false;”;最后重启服务即可。

phpmyadmin出现“令牌不符”错误怎么办

phpmyadmin出现“令牌不符”怎么办?

打开phpmyadmin:

http://localhost/phpmyadmin/#PMAURL-0:index.php?db=&table=&server=1&target=&lang=zh_CN&collation_connection=utf8mb4_general_ci&token=77d5544461972e52eb21ad1ab561b4d0
Copy after login

点击数据库会出现 错误:令牌不符的提示

831ef02b6594a0bb6001074a032089a.png

解决方法:

打开phpmyadmin 目录下 libraries文件下的 common.inc.php

第468行

$token_mismatch = true;
if (PMA_isValid($_REQUEST['token'])) {
    $token_mismatch = ($_SESSION[' PMA_token '] != $_REQUEST['token']);
Copy after login

后加入:

$token_mismatch = false;
Copy after login

49228472184d0318a4a1b760eaaf9bb.png

保存后:重启服务 即可。

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