Acesso Remoto MySQL

1 – Comente a entrada abaixo no arquivo /etc/mysql/my.cnf

vi /etc/mysql/my.cnf
bind-address           = 127.0.0.1

2 – Reinicie o MySQL

/etc/init.d/mysql restart

3 – Permita acesso do usuário remotamente ao servidor MySQL

mysql -u root -p
GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY 'suasenha';
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s