Home > php教程 > php手册 > body text

在Windows 95/98/NT上安装 PHP、MySQL、phpMyAdmin

WBOY
Release: 2016-06-21 09:01:54
Original
966 people have browsed it

 

进到您的c:\php目录,有一个叫做php.ini-dist的文件,这个就是PHP的配置文件.

打把php.ini-dist改名,改为php.ini并将它拷贝到c:/xxxx目录下
c:/xxxx是您的Windows所在的目录

用您喜欢的文件编辑器(最好是支持win32长文件名格式的,如edit, Ultraedit等)
打开php.ini编辑它

里面有一项 extension_dir=./ 这是放置 php*.DLL 文件的目录
有的教程里需要改,因为我们用的是Apache,又没有将 php*.DLL 文件拷到
系统目录下. 所以,此项在这里不用改.

Windows Extensions栏目中有着一些动态连接库,看您的需要来改
这里,我们用的是MySQL.
所以,我们将 extension=php_mysql.dll 前面的";"去掉
这样 MySQL 函数库就可运行了 .

找到 [MySQL] 栏,里面有几项需要修改,如下:

mysql.default_port = 3306

mysql.default_host = localhost

mysql.default_user = root

上面的斜、黑体文字就是您要输入的。

 

phpmyadmin解压到c:\admin目录下

配置phpmyadmin_2.0.5
在c:\admin下找到config.inc.php3文件
从第10行起修改如下
$cfgServers[1]['host'] = 'localhost';
$cfgServers[1]['port'] = '3306';
$cfgServers[1]['adv_auth'] = false;
$cfgServers[1]['stduser'] = 'root';
$cfgServers[1]['stdpass'] = '';
$cfgServers[1]['user'] = 'root';
$cfgServers[1]['password'] = '';
$cfgServers[1]['only_db'] = '';
$cfgServers[1]['verbose'] = '';

修改第65行
require("english.inc.php3");
为 require("chinese_gb.inc.php3");
保存此文件。

好了! 到这里已经可以了, 如果您还想配置得详细点。

 



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!