曦远 (DealiAxy)一份私人的文字刊物

StarBlog
返回文章列表折页手记阅读全文
系统配置

Configure MariaDB database server remote access

Operating Steps Enable Remote Access Connect to the MariaDB database and execute the following command to enable remote access. grant all privileges on *.* to 'root'@'192.168.248.248' identified by 'password'; flush privileges; If access from any IP address is needed, replace the IP address with '%'. Modify Configuration Files The information available online only mentions the first step, but after testing, it does not work.

曦远 (DealiAxy)约 2 分钟
目录4 个章节

Steps

Enabling Remote Access

Connect to the MariaDB database and execute the following command to enable remote access.

grant all privileges on *.* to 'root'@'192.168.248.248' identified by 'password';
flush privileges;

If access is needed from any IP address, replace the IP address with %.

Modify the Configuration File

Most resources available online only mention the first point, but testing showed otherwise. This is because MariaDB defaults to binding to the local IP address. The exact file location depends on the database version. It took me some time to find it at the time. /etc/mysql/my.cnf/mariadb.conf.d/50-server.cnf Comment out the line bind-address = 127.0.0.1.

Restart MariaDB Service

_EOF_

Configure MariaDB database server remote access

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…