I have a working MariaDB 10.2 running on my CentOS 6 server. I can connect to the DB from another machine on the LAN.

Out of curiosity, I wanted to revisit how this was made possible. Everything I read mentions using bind-address in the my.cnf file, but when I examine this file, there is no such directive. Neither is there anything in the files /etc/my.cnf.d/*.cnf.

Is network access a default in this case, or is there some other mysterious directive?

1 Answer 1


https://mariadb.com/kb/en/configuring-mariadb-for-remote-client-access/ says :

MariaDB only supports one bind-address, but binds to, or :: (every IP) if the bind-address directive is left out).

I understand that in this case mariadb listens on every IP address of the machine. However even in this case you can filter on hostname at user account level with the user@host syntax.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.