Home  >  Article  >  php教程  >  安装phpMyAdmin的具体方法及注意事项

安装phpMyAdmin的具体方法及注意事项

WBOY
WBOYOriginal
2016-06-13 11:09:30889browse

许多新手对于

为了实现后一种,你将需要合理设置MySQL用户,他只能对允许的数据库进行读/写。那要等到你看过MySQL手册中相关的部分。

快速安装phpMyAdmin

将phpMyAdmin软件包解到一个目录下。

打开config.inc.php3,根据你的环境,修改$cfgServers[1]["host"],$cfgServers[1]["user"]和 $cfgServers[1]["password"]的值。可以看一下下面的配置部分所列出的所有可配置的变量,根据情况对其它参数进行修改。

建议在安装完phpMyAdmin之后,对其目录进行保护(除非在一个企业内部网上)。例如,可以使用HTTP-AUTH(用一个.htaccess文件)。

在浏览器中打开文件:安装主机域名/安装目录/index.php3。phpMyAdmin应该显示一个欢迎屏和你的数据库。

phpMyAdmin支持多语言。如果要改成中文版本,则修改config.inc.php3中的require("english.inc.php3");为require("chinese_gb.inc.php3")。这样界面就是中文的了。好棒噢!

保存config.inc.php3。

安装phpMyAdmin注意

请确认保护了phpMyAdmin目录。缺省是没有任何保护的!它不应该被随便一个人特别是搜索引擎读到。

尽管我在每一页中都加了一个"nofollow"指令,也可能有的搜索引擎不考虑仍然继续访问页面的链接。

想象一下AltaVista访问了一个名叫"Drop Dtabase"的链接会怎么样吧。你可以在http://www.apacheweek.com/features/userauth对Apache的认证方法有一个全面了解。另一个教程在http://deepthought.texsci.edu/protected_dirs.html

PHP3应该被配置为magic_quotes=on。


Statement:
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