GRANT ALL ON *.* to root@'10.50.249.%' IDENTIFIED BY 'your-root-password';
FLUSH PRIVILEGES;
db server: 10.50.249.51
web server: 10.50.249.52
If you have a user defined in mysql.user as 'user'@'10.50.249.52' with password1 and
another 'user'@'10.50.249.%' with password2, then, if
you try to connect to the db server from the web server as 'user' with
password2, it will result in an 'Access denied' error because the single IP 'user'@'10.50.249.52' authentication is used
over the wildcard 'user'@'10.50.249.%' authentication.
0 comments:
Post a Comment