Example: Enable remote root access to ip address: 192.168.3.177
mysql > GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.3.177' IDENTIFIED BY '' WITH GRANT OPTION;
mysql > FLUSH PRIVILEGES;
This setting also allows us to connect to mysql in our php code, with the host set to ip address, 192.168.3.177 :
mysql_connect("192.168.3.177","root","");
Comments
Post a Comment