PHP+APACHE+MYSQL简单配置 (陆续添加内容)
安装 phpMyAdmin: 下载得到 phpMyAdmin-2.7.0.zip ,将其解压到D:\php\或者 IIS 根目录,改名phpMyAdmin-2.7.0为phpMyAdmin,并在IIS中建立新站点或者虚拟目录指向该目录以便通过WEB地址访问,这里建立默认站点的phpMyAdmin虚拟目录指向D:\php\phpMyAdmin目录通过http://localhost/phpmyadmin/访问找到并打开D:\php\phpMyAdmin目录下的 config.default.php ,做以下修改:
查找
CODE:
$cfg['PmaAbsoluteUri']设置你的phpmyadmin的WEB访问URL,如本文中:$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; 注意这里假设phpmyadmin在默认站点的根目录下
搜索
CODE:
$cfg['blowfish_secret'] =设置COOKIES加密密匙,如xqin.com则设置为$cfg['blowfish_secret'] = 'xqin.com';
搜索$cfg['Servers'][$i]['auth_type'],默认为config,是不安全的,不推荐,推荐使用cookie,将其设置为$cfg['Servers'][$i]['auth_type'] = 'cookie';
注意这里如果设置为config请在下面设置用户名和密码!例如:
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user-----MySQL连接用户
$cfg['Servers'][$i]['password'] = 'xqin.com';
搜索$cfg['DefaultLang'] ,将其设置为 zh-gb2312 ;
搜索$cfg['DefaultCharset'] ,将其设置为 gb2312 ;
页:
[1]