Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3270263
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: Mysql/postgreSQL

2007-04-19 03:52:30

记一次phpMyAdmin配置
修改:phpMyAdmin-2.9.2-all-languages/libraries/config.default.php
 
 
$cfg['PmaAbsoluteUri'] = '';(这里要有/的)
$cfg['Servers'][$i]['host']          = '127.0.0.1'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = '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']          = 'admin';      // MySQL user
$cfg['Servers'][$i]['password']      = '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 ---------------------------------------
如果报错:
Wrong permissions on configuration file, should not be world writable!
#chmod 755
config.default.php



$cfg['Servers'][$i]['host']          = 'localhost';
改为$cfg['Servers'][$i]['host']          = '127.0.0.1'; 即可 
阅读(5844) | 评论(0) | 转发(0) |
0

上一篇:MySQL的mysqldump工具

下一篇:FREE BSD颜色问题

给主人留下些什么吧!~~