Home > Backend Development > PHP Tutorial > phpmyadmin配备说明

phpmyadmin配备说明

WBOY
Release: 2016-06-13 13:14:14
Original
918 people have browsed it

phpmyadmin配置说明

找到 /libraries/config.default.php文件(config.default.php复制到phpmyadmin目录下,然后更名为config.inc.php),windows下编辑用写字板(不要用记事本,这是UTF8编码)进行编辑,在linux下直接用vim编辑。其中默认$i = 1为全局变量,全局变量按需要可增加。

?

?

配置项 说明
$cfg['PmaAbsoluteUri'] = 'http://192.168.1.11/onlyyouknow'; 填写访问phpmyadmin的地址
$cfg['Servers'][$i]['only_db'] = ''; 可留空,如果填写了某个或多个数据库,那么登录用户将只看到这些数据库,如['db1','db2'…]
$cfg['Servers'][$i]['host']='localhost'; 本机可默认用localhost,若添加更多服务器则填第$n个服务器的主机名或者 IP 地址,其中$n要在$i = 1;附件定义全局变量。用localhost将无视指定端口,默认3306
$cfg['Servers'][$i]['auth_type'] = 'config'; 这里建议使用cookie
$cfg['Servers'][$i]['user'] = 'root'; MySQL user(mysql用户名,不建议用root;)
$cfg['Servers'][$i]['password'] = ''; MySQL password
$cfg['blowfish_secret'] = '? '; 填入任意就不会提示出现“配置文件现在需要绝密的短语密码
$cfg['LoginCookieValidity'] = 1800; 连接超时时间,单位秒
$cfg['Servers'][$i]['verbose'] = ''; 有当多服务器模式时有效设置以后,本字符串将代替主机名显示下拉菜单中。
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template