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';

Legenda:
Usuario: root
Ip da maquina: 192.168.0.55
Senha: senha

Simples !