利用wampserver搭建php开发环境

来源:互联网 发布:荷兰红灯区 知乎 编辑:程序博客网 时间:2024/06/04 17:54

1.首先下载wampserver,下载完成后,傻瓜是安装,安装完成后,桌面的右下角会出现一个wampserver的图标

2.验证是否成功,打开浏览器,输入localhost,看到如下所示,说明安装成功。

鼠标左键点击wampserver的图标,点击phpMyadmin连接到数据库,在这里如果之前安装了mysql数据库,则需要设置一下密码,找到wampserver的安装目录,我是在D:/盘安装,则D:\study\wampserver\wamp\apps\phpmyadmin3\config.inc.php文件,修改mysql密码

<?php/* Servers configuration */$i = 0;/* Server: localhost [1] */$i++;$cfg['Servers'][$i]['verbose'] = 'localhost';$cfg['Servers'][$i]['host'] = 'localhost';$cfg['Servers'][$i]['port'] = '';$cfg['Servers'][$i]['socket'] = '';$cfg['Servers'][$i]['connect_type'] = 'tcp';$cfg['Servers'][$i]['extension'] = 'mysqli';$cfg['Servers'][$i]['auth_type'] = 'config';$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = 'root'; 这里修改mysql的密码$cfg['Servers'][$i]['AllowNoPassword'] = true;/* End of servers configuration */$cfg['DefaultLang'] = 'en-utf-8';$cfg['ServerDefault'] = 1;$cfg['UploadDir'] = '';$cfg['SaveDir'] = '';/* rajk - for blobstreaming */$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';?>


0 0
原创粉丝点击