wamp远程登录配置步骤

wamp远程登录配置步骤:
一,修改\wamp\bin\apache\apache2.4.9\conf\httpd.conf

AllowOverride none
#Require all denied
Allow from all

将Require all denied修改为Allow from all


AllowOverride all
#Require local
Allow from all

将Require local修改为Allow from all

二,修改\wamp\alias\phpmyadmin.conf

Require local


Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1

修改为

Allow from all


Order Deny,Allow
Allow from all

三,修改\wamp\apps\phpmyadmin4.1.14\config.inc.php

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
修改为
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
注释掉
//$cfg['Servers'][$i]['user'] = 'root';
//$cfg['Servers'][$i]['password'] = '';

四,打开mysql命令窗口

wamp远程登录配置步骤_第1张图片
Paste_Image.png

Enter password:直接回车
执行命令:
use mysql;
select host,user,password from user;
delete from user where user=''; (删除掉空用户,否则永远可以随便输账号不输密码进入)
flush privileges;
update user set password=password("root") where user="root"; (修改root账号密码)
flush privileges;

然后重启服务,注意在这之前不可以重启
然后就可以用root root登录了

你可能感兴趣的:(wamp远程登录配置步骤)