码迷,mamicode.com
首页 > Web开发 > 详细

Apache 2.4+php5.x+mysq5.xl环境搭建(四)

时间:2014-12-30 20:44:07      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:apache   php   mysql   phpmyadmin   

phpmyadmin的安装


下载

官方下载地址:http://www.phpmyadmin.net/home_page/downloads.php


下载时注意phpmyadmin支持的mysql版本。


安装

因为mysql版本是5.0,这里采用phpmyadmin【phpMyAdmin 4.0.10.7】多语言版,解压到Apache的web目录。(这里是C:\WEB\Apache24\htdocs)。


设置phpmyadmin的配置文件config.inc.php(位置在C:\WEB\Apache24\htdocs\phpMyAdmin)

<span style="font-family:SimSun;"><?php
/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = ''; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type']     = 'http';      // Authentication method (config, http or cookie based)
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
$cfg['Servers'][$i]['extension'] = 'mysqli';

$cfg['Lang'] = '';

/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';

/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
$cfg['Servers'][$i]['recent'] = 'pma_recent';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';

/*
 * End of servers configuration
 */

?>
</span>

测试phpmyadmin安装成功

浏览器地址栏中输入localhost/phpmyadmin,弹出用户登陆框,输入用户密码,登录phpmyadmin中,phpmyadmin安装成功!


Apache 2.4+php5.x+mysq5.xl环境搭建(四)

标签:apache   php   mysql   phpmyadmin   

原文地址:http://blog.csdn.net/chen_jint/article/details/42271071

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!