| XREA空间数据库操作的相关更新 |
|
| 日期:2006-6-3 16:58:00 人气:
[大
中 小] |
|
总所周之,XREA一直只能使用一个数据库名。 而且数据库和FTP一直是使用相同密码。 最近,这几点得到改进。XREA用户最多可以自行开设到5个数据库名。 例如: 你的数据库名如果是"gaipai"的话, 那么就可以自己再添加新数据库名为: gaipai_2 gaipai_3 gaipai_4 gaipai_5
5个不同名字的数据库名,还可以通过PhpMyAdmin修改自己的数据库密码。

测试过,没出什么问题。
如果在添加中出现什么问题,可以自行修改你的config.inc.php文件
大概在80行左右
$cfg['Servers'][$i]['user'] = '数据库名'; // MySQL user $cfg['Servers'][$i]['password'] = '数据库密码'; // MySQL password (only needed // with 'config' auth_type) $cfg['Servers'][$i]['only_db'] = '数据库名'; // If set to a db-name, only
如果你解除以上设定就不能自动登陆,但是可以添加下面代码变成为选择数据库名登陆方式。
添加位置,在133行把
$cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = '';
换成
$cfg['Servers'][$i]['user'] = '数据库名_2'; $cfg['Servers'][$i]['password'] = '数据库名_2の密码';// 这里可以随意设置新添数据库的密码
如果还想继续添加数据库名的话,转到166行进行相同的修改。
$i++; $cfg['Servers'][$i]['host'] = ''; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['compress'] = FALSE; $cfg['Servers'][$i]['controluser'] = ''; $cfg['Servers'][$i]['controlpass'] = ''; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = '数据库名_5'; $cfg['Servers'][$i]['password'] = '数据库名_5'的密码'; $cfg['Servers'][$i]['only_db'] = ''; $cfg['Servers'][$i]['verbose'] = ''; $cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql $cfg['Servers'][$i]['bookmarktable'] = ''; // 'pma_bookmark' $cfg['Servers'][$i]['relation'] = ''; // 'pma_relation' $cfg['Servers'][$i]['table_info'] = ''; // 'pma_table_info' $cfg['Servers'][$i]['table_coords'] = ''; // 'pma_table_coords' $cfg['Servers'][$i]['pdf_pages'] = ''; // 'pma_pdf_pages' $cfg['Servers'][$i]['column_info'] = ''; // 'pma_column_info' $cfg['Servers'][$i]['history'] = ''; // 'pma_history' $cfg['Servers'][$i]['verbose_check'] = TRUE; $cfg['Servers'][$i]['AllowDeny']['order'] = ''; $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
|
|
| 出处:mumayi.net 作者:不详 |
|
|