/*
* First server
*/
$i++;
$connect_hosts = array(
'1'=>array(
"host" => " ", //server1
"user" => " <mysql admin="" id>",
"password" => "<password>"
"port"= "<port number>"
) ,
'2'=>array(
"host" => "", //server1
"user" => "<mysql admin="" id>",
"password" => "<password>"
"port"= "<port number>"
);
for ($i=1;$i<=count($connect_hosts);$i++) {
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http'; //之前是cookie的时候有个报错
/* Server parameters */
$cfg['Servers'][$i]['host'] = $connect_hosts[$i]['host']; //host list
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['user'] = $connect_hosts[$i]['user'];//change username
$cfg['Servers'][$i]['password'] = $connect_hosts[$i]['password']; //pwd
}
这些配置完成后, phpmyadmin还需要创建一个phpmyadmin自己的DB
貌似是用来记录最近操作的表格之类的信息,具体还在研究
这个库的建库建表sql的存放路经通过这个找
* First server
*/
$i++;
$connect_hosts = array(
'1'=>array(
"host" => " ", //server1
"user" => " <mysql admin="" id>",
"password" => "<password>"
"port"= "<port number>"
) ,
'2'=>array(
"host" => "", //server1
"user" => "<mysql admin="" id>",
"password" => "<password>"
"port"= "<port number>"
);
for ($i=1;$i<=count($connect_hosts);$i++) {
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http'; //之前是cookie的时候有个报错
/* Server parameters */
$cfg['Servers'][$i]['host'] = $connect_hosts[$i]['host']; //host list
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['user'] = $connect_hosts[$i]['user'];//change username
$cfg['Servers'][$i]['password'] = $connect_hosts[$i]['password']; //pwd
}
这些配置完成后, phpmyadmin还需要创建一个phpmyadmin自己的DB
貌似是用来记录最近操作的表格之类的信息,具体还在研究
这个库的建库建表sql的存放路经通过这个找
locate create_tables.sql
/usr/share/doc/phpmyadmin/examples/create_tables.sql.gz
解压
tar xvf create_tables.sql.gz
注意修改 libraries/config.default.php,将$cfg['PmaNoRelation_DisableWarning']的值改为ture。(一开始没改,不过装完发现是默认打开的)
另外config.inc.php里的table值和sql的一定要一致,我是直接改的SQL
莫名奇妙的就这么开启高级功能了,有多高级,目前还在研究中,有兴趣的等后续吧
</password<></password<>
/usr/share/doc/phpmyadmin/examples/create_tables.sql.gz
解压
tar xvf create_tables.sql.gz
注意修改 libraries/config.default.php,将$cfg['PmaNoRelation_DisableWarning']的值改为ture。(一开始没改,不过装完发现是默认打开的)
另外config.inc.php里的table值和sql的一定要一致,我是直接改的SQL
莫名奇妙的就这么开启高级功能了,有多高级,目前还在研究中,有兴趣的等后续吧
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16131092/viewspace-2132372/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16131092/viewspace-2132372/