修改mysql密码

时间:2020-07-18 19:56:59   收藏:0   阅读:79

mysql密码修改

使用xampp的小伙伴,修改密码后肯定不能登录localhost了,所以要打开config.inc.php 这个文件并找到如下部分:

/* Authentication type and info */
$cfg[‘Servers‘][$i][‘auth_type‘] = ‘config‘;
$cfg[‘Servers‘][$i][‘user‘] = ‘root‘;
$cfg[‘Servers‘][$i][‘password‘] = ‘‘;
$cfg[‘Servers‘][$i][‘extension‘] = ‘mysqli‘;
$cfg[‘Servers‘][$i][‘AllowNoPassword‘] = true;
$cfg[‘Lang‘] = ‘‘;

修改password=‘‘里的值
如果想每次登录localhost自行输入用户密码,可以修改configcookie

一般遇到打不开某个服务大多数是端口冲突修改下即可

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!