XAMPP for Windows 1.8.1 修改mysql默认空密码

XAMPP for Windows 1.8.1 修改mysql默认空密码  

2013-04-01 15:21:23|  分类: mysql|举报|字号 订阅

1、启动XAMPP 的Apache Mysql 服务
XAMPP for Windows 1.8.1 修改mysql默认空密码 - allenessy - ╱/. Left の Right
 
2、打开IE浏览器(或者Chrome firefox浏览器) 在地址栏中输入:

出现如下提示:
您配置文件中的设置 (空密码的 root) 与 MySQL 默认管理员账户对应。您的 MySQL 服务器使用默认值运行当然没有问题,不过这样的话,被入侵的可能性会很大,我们强烈建议您应该立即给 'root' 用户设置一个密码来补上这个安全漏洞。

3、点击mysql->user->root这一栏中输入123456
XAMPP for Windows 1.8.1 修改mysql默认空密码 - allenessy - ╱/. Left の Right
 
4、回到首页->用户->root localhost->编辑权限
XAMPP for Windows 1.8.1 修改mysql默认空密码 - allenessy - ╱/. Left の Right
 
5、修改密码->密码->重新输入->执行。
XAMPP for Windows 1.8.1 修改mysql默认空密码 - allenessy - ╱/. Left の Right
 
6、打开/xampp/phpmyadmin/config.inc.php

找到
$cfg ['Servers' ][ $i ]['password' ]  = '' ;
$cfg ['Servers' ][ $i ]['AllowNoPassword' ]  =  true ;
修改为
$cfg ['Servers' ][ $i ]['password' ]  = '123456' ;
$cfg ['Servers' ][ $i ]['AllowNoPassword' ] =  false ;

7、打开/xampp/mysql/bin/my.ini

找到
# password       = your_password      在19行
修改为
password        = 123456 

8、重启Apache mysql即可。

下载地址:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值