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.
目录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 许可协议。转载请注明出处!
相关文章
Debian下SSH服务的安装与配置
https://cnzhx.net/blog/linux-server-ssh-key-auth-configuration/
2025-10-27 · 系统配置 · 约 1 分钟
Linux终端输入密码显示星号
Linux默认密码星号?这体验真不错。一行sudoers配置搞定,真就有人非要用脚本整这些。关闭?那不是自讨没趣吗。
2025-10-01 · 系统配置 · 约 1 分钟
关闭CentOS-6-防火墙,关闭Linux系统防火墙
前言 最近部署服务的时候需要临时关闭一下防火墙,所以记个笔记,如何关闭CentOS防火墙。 查看系统版本 输入:cat /etc/issue 查看版本 通过service关闭 service命令开启以及关闭防火墙为即时生效,下次重启机器的时候会自动复原。 查看防火墙状态: service iptables status 记得在CentOS6.9中是输入iptables,网上有些教程使用serv
2025-10-27 · 系统配置 · 约 1 分钟
设置Linux默认的文件管理器
搜索了半天,也试了很久。 用以下命令可以: 使用Xfce的文件管理器 xdg-mime default Thunar.desktop inode/directory thunar.desktop换成你想要的文件管理器名称 再不行就只能把原来的那个文件管理器卸载掉= =。 我比较喜欢用Gnome的文件管理器: xdg-mime default org.gnome.Nautilus.desktop i
2025-10-27 · 系统配置 · 约 1 分钟
讨论
共 0 条加载评论中…