WampServer安装好后,mysql密码是为空的,下面修改密码方法:

update user set password=password('新密码') where user='root';

FLUSH PRIVILEGES;