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 许可协议。转载请注明出处!
相关文章
Debian8-stable-升级Python版本到3-6
前言 最近把一个Python项目部署到服务器上,然而服务器上的Python版本实在是太旧了,于是着手进行更新。 互联网上搜索到的方法都是下载Python3.6的代码之后手动编译,然而在服务器上编译安装出了点问题,于是想到了Ubuntu的ppa方式,debian和Ubuntu本属同源,理论上Ubuntu的ppa,debian也是可以用的。 操作步骤如下: 添加软件源 add-apt-reposito
2025-10-27 · 系统配置 · 约 1 分钟
在Linux系统上一键配置DoH,解决DNS解析被污染
DNS解析被污染?换DoH不就得了。云flare那破工具简单得可笑,国内DNS上游直接用就行。一行配置搞定,谁还不会啊?
2025-10-02 · 系统配置 · 约 1 分钟
Ubuntu-18-04-修复-Telegram-中文输入法
前言 Ubuntu 18.04,新的 Gnome 桌面的确好看很多。但同时出现了很多之前在 Unity 没有出现过的 BUG,例如在 Telegram 下无论怎么切换输入法都不能输入中文。 大概是所有 QT 编写的应用程序在 Gnome3 下都会出现这个问题,解决方法是引入 QT_IM_MODULE 变量。大致 步骤如下 编辑~/.local/share/applications/telegram
2025-10-27 · 系统配置 · 约 1 分钟
Linux--使用Snap安装第三方微信客户端Electronic-Wechat
前言 腾讯估计是不会给Linux系统开发任何软件了,不过问题不大。我们有很多好用的第三方软件替代~~(无奈之举,摊手)~~ 关于Snap Ubuntu官网上的介绍 Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single bu
2025-10-27 · 系统配置 · 约 1 分钟
讨论
共 0 条加载评论中…