发布于 2015-12-09 02:57:23 | 230 次阅读 | 评论: 0 | 来源: PHPERZ
WampServer PHP开发集成安装环境
Wamp就是Windows Apache Mysql PHP集成安装环境,即在window下的apache、php和mysql的服务器软件。
双击安装: 一路next
启动wampserver
打开mysql控制台
默认密码为空,所以回车就可以进入数据库,执行以下命令修改root用户的密码
use mysql;
update user set password=PASSWORD('你的密码') where user='root';
flush privileges;
quit
打开目录,C:\wamp\apps\phpmyadmin4.1.14
并找到conf.inc.php,修改password的值:
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'TingShuo2';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;