PHPAdmin的安装和配置
phpadmin是用于管理mysql数据库的一个产品,,毕竟很多数据库服务器不能够公开连接,所以只能够使用http的方式来进行连接管理。
$cfg[‘blowfish_secret‘] = ‘admin‘;
$cfg[‘Servers‘][$i][‘port‘] = ‘‘; // 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 (config, http or cookie based)?
$cfg[‘Servers‘][$i][‘user‘] = ‘‘; // MySQL user
$cfg[‘Servers‘][$i][‘password‘] = ‘‘; // MySQL password (only needed
其中比较重要的几个参数意义:
Alias /phpadmin/ "website/phpMyAdmin-2.6.1-rc2/"
#php_admin_flag engine on
#php_admin_flag safe_mode off
DirectoryIndex index.php
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
#php_admin_flag engine on
#php_admin_flag safe_mode off
#php_admin_value open_basedir none
#php_admin_value open_basedir "website/phpMyAdmin-2.6.1-rc2/"
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。