Multi Host DB Phpmyadmin Control

 


nano /etc/phpmyadmin/config.inc.php


$i = 0;

$_default_cfg_server = array(

    'auth_type' => 'cookie',

    'verbose'    => 'localhost',

    'host'        => 'localhost',

    'connect_type'=> 'tcp',

    'compress'    => false,

    'AllowNoPassword' => true

);


$servers = array(

    array(), // this our localhost, so let it be

    array(

        'verbose' => 'db1.ioscloud.co.id',

        'host'    => '10.1.10.4'

    ),

    array(

        'verbose' => 'db2.ioscloud.co.id',

        'host'    => '10.1.10.5'

    ),

    array(

        'verbose' => 'db3.ioscloud.co.id',

        'host'    => '10.1.10.6'

    )

);

foreach($servers as $svr) 

    $cfg['Servers'][++$i] = array_merge($_default_cfg_server, $svr);


Ori Grata

Abstrak

Please Select Embedded Mode For Blogger Comments

أحدث أقدم

Ikuti lewat Email

Advertisement