gpt4 book ai didi

mysql - 如何使用xampp服务器在phpmyadmin中重置root密码

转载 作者:可可西里 更新时间:2023-11-01 09:05:37 24 4
gpt4 key购买 nike

嗨,任何人都可以帮助我如何重置我的 phpmyadmin root 密码。当我要打开 localhost/phpmyadmin 时,我收到了这个错误..

" Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user 'root'. "

当我点击用户更改我的密码时,我遇到了这个错误

Error : Token mismatch

我也试试这个方法:启动 XAMPP 服务器后,我转到浏览器并键入 URL localhost/security/(如果您修改了 XAMPP 服务器端口,则需要在之前的 URL 中也包含该端口号)。将显示安全页面,您可以在其中更改 MySQL 的根密码。这也将更新 phpMyAdmin 配置。

我已经按照这个方法但是我不能解决我的问题请帮我解决这个问题

最佳答案

转到 \xampp\phpMyAdmin\config.inc.php

然后

$cfg['Servers'][$i]['password'] = 'WhateverPassword';//near line 21

或者运行这个命令

mysqladmin.exe -u root password 'WhateverPassword'

可能重复 Resetting MySQL Root Password with XAMPP on Localhost

关于mysql - 如何使用xampp服务器在phpmyadmin中重置root密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31649850/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com