

Phpmyadim
Started By snarfinho*bdg, 07/12/2004, 15:29
2 replies to this topic
#1
Posted 07/12/2004, 15:29
ae galera eu baixei o PHPMYADIMIm e nao tenho a minima ideia de como configurar....aguem pode me da uma ajuda??Eu uso banco MYSQL...VALEU!!!

#2
Posted 07/12/2004, 16:13
Configurar o arquivo config.inc.php
exemplo abaixo:
Configurar a URL de acesso ao phpmyadmin
$cfg['PmaAbsoluteUri'] = 'http://10.200.118.25/phpMy';
Configurar o servidor onde esta o mysql, conforme o exemplo das variáveis abaixo:
$cfg['Servers'][$i]['host'] = '10.200.145.44'; // MySQL hostname or IP address
$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'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // 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
// this db is displayed in left frame
// It may also be an array of db-names,
...
Basicamente são estes campos, para configurações com permissão de acesso específicas no banco, de uma olhada na documentação
Configurar o servidor HTTP, se for apache
Inclua as seguintes linhas no httpd.conf
Alias /phpMy "/yyy/xxx/phpMyAdmin-2.6.0/"
<Directory "/yyy/xxx/phpMyAdmin-2.6.0">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
exemplo abaixo:
Configurar a URL de acesso ao phpmyadmin
$cfg['PmaAbsoluteUri'] = 'http://10.200.118.25/phpMy';
Configurar o servidor onde esta o mysql, conforme o exemplo das variáveis abaixo:
$cfg['Servers'][$i]['host'] = '10.200.145.44'; // MySQL hostname or IP address
$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'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // 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
// this db is displayed in left frame
// It may also be an array of db-names,
...
Basicamente são estes campos, para configurações com permissão de acesso específicas no banco, de uma olhada na documentação
Configurar o servidor HTTP, se for apache
Inclua as seguintes linhas no httpd.conf
Alias /phpMy "/yyy/xxx/phpMyAdmin-2.6.0/"
<Directory "/yyy/xxx/phpMyAdmin-2.6.0">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#3
Posted 07/12/2004, 16:43
valeu pela dica!!
vo ve como fica agora!!!


1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)