返回文章列表文章索引阅读全文
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 许可协议。转载请注明出处!

相关文章

给你的Deepin系统换主题~

我现在的桌面: 因为美国封锁然后华为电脑用上Deepin系统的事情,Deepin系统最近名声大噪,其实Deepin本来的界面就很好看,号称打造最适合国人的系统不是盖的。 不过Deepin有一个坏处,就是默认主题的标题栏太大了…… 太占空间。所以我们要换主题折腾一下。 Deepin的桌面是Qt写的,所以首先要换KDE主题,然后再安排一下GTK3的主题,在Deepin系统设置里面换的主题就是GTK的,

2025-10-01 · 系统配置 · 约 1 分钟

在Nginx上配置https加密服务器

前言 最近开发微信小程序需要使用Https,于是折腾了一番。 超简单步骤 1. 申请SSL证书 一般云服务器提供商就会提供这种服务,我在腾讯云上申请了,十分钟就完成了。 2. 上传证书 上传到一个文件夹里面 3. 配置nginx 网络上的资料都是直接修改 /etc/nginx/nginx.conf 这个文件。 不过我的服务器上这个文件里头没有 server 这个节点可以配置。 因此需要修改 /et

2025-10-27 · 系统配置 · 约 1 分钟

Nginx配置http跳转https-强制https访问

前言 最近上线了好几个项目,同时也申请了相应的SSL证书,不过发现了一个问题,用户在浏览器直接输入域名的时候,浏览器默认访问的是http站点,然而我们的网站只支持https访问,所以就访问不了咯。 其实可以在nginx全局配置里面把所有访问重定向到https,不过服务器有些站点是提供http服务的,所以只能每个站点分别配置。 根据搜索引擎找到的资料,本文总结了三种配置方法,有需要的朋友可以选择中意

2025-10-27 · 系统配置 · 约 1 分钟

讨论

共 0 条

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

加载评论中…