免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1137 | 回复: 0
打印 上一主题 下一主题

phpMyAdmin配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-19 03:52 |只看该作者 |倒序浏览

                记一次phpMyAdmin配置
修改:[color="#ff0000"]phpMyAdmin-2.9.2-all-languages/libraries/config.default.php
[color="#ff0000"]
[color="#ff0000"]
$cfg['PmaAbsoluteUri'] = 'http://www.test.org/phpMyadmin/';(这里要有/的)
[color="#ff0000"]$cfg['Servers'][$i]['host']          = '127.0.0.1'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = [color="#0080ff"]'33060';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                    // (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
                                                    // (this user must have read-only
$cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                    // and "mysql/db" tables).
                                                    // The controluser is also
                                                    // used for all relational
                                                    // features (pmadb)
$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (valid choices: config, http, HTTP or cookie)
$cfg['Servers'][$i]['user']          = [color="#0080ff"]'admin';      // MySQL user
$cfg['Servers'][$i]['password']      = [color="#0080ff"]'12345';          // MySQL password (only needed
                                                    // with 'config' auth_type)
$cfg['Servers'][$i]['nopassword']    = FALSE;       // Whether to try to connect without password
$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
                                                    // this db is displayed in ---------------------------------------

[color="#ff0000"]如果报错:
[color="#ff0000"]Wrong permissions on configuration file, should not be world writable!
#chmod 755
[color="#ff0000"]config.default.php

[color="#ff0000"]

[color="#ff0000"]$cfg['Servers'][$i]['host']          = 'localhost';
[color="#ff0000"]改为$cfg['Servers'][$i]['host']          = '127.0.0.1'; 即可


               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_281085.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP