how have I to add a trusted hostname in the mysql configuration?
webserver.mysomain.com
dbserver.mydomain.com
I would like to add the webserver.mydomain.com in the mysql database installed in the dbserver.mydomain.com
so all the connections that come from the webserver.mydomain.com must be accepted.
thanks
I am not sure what you are trying to achieve here nor whether mysql has a concept of trusted hosts. But if you are doing this for security reasons, then do it at the user level when adding users in mysql. In other words, you will have to setup a user in mysql which connects from the webserver only, you can do this through the
grant privileges
options -On top of that, modify your firewall rules to allow mysql connections, port 3306, from webserver.mydomain.com - In iptables you can do it this way: