terça-feira, 16 de setembro de 2014

Liberar acesso externo para um determinado IP no Mysql e Grant de DBA

quarta-feira, 7 de julho de 2010


Liberar acesso externo para um determinado IP no Mysql

Utilizando o root e digite o seguinte comando:


[root@server /]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1406 to server version: 5.0.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> 
grant all privileges on *.* to root@192.168.0.55 identified by 'senha';
    mysql> FLUSH PRIVILEGES;

Para dar grant de DBA acrescentar:  with grant option;

grant all privileges on *.* to 'root'@'%' with grant option;
Legenda:
Usuario: root
Ip da maquina: 192.168.0.55 ou % para todos os IPs
Senha: senha

Simples !

Postado por Diego Alexandre
Fonte: Ajuda em Tecnologia
http://ajudaemtecnologia.blogspot.com.br/2010/07/liberar-acesso-externo-para-um.html

Nenhum comentário: