quarta-feira, 11 de março de 2015

Configurando o phpmyadmin para acessar remotamente

Para ter acesso remoto via phpmyadmin, edite o 'config.inc.php' deixando-o assim:

<?php

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = ' ';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* Server: servidor remoto [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'NOME_IDENTIFICADOR';
$cfg['Servers'][$i]['host'] = 'IP_DO_SERVIDOR_REMOTO';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'NOME_DE_USUARIO';
$cfg['Servers'][$i]['password'] = 'SENHA';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/* End of servers configuration */

$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>
Tudo que esta em azul foi modificado para ter acesso remotamente com phpmyadmin.