MariaDB not allowing remote connections(MariaDB 不允许远程连接)
问题描述
如屏幕截图所示,我已将帐户设置为允许远程连接,但如第二个屏幕截图所示,我仍然无法远程连接.
As the screenshots show, I have the accounts setup to allow remote connections but as shown in the second screenshot I still cannot connect remotely.
推荐答案
我用于在虚拟机(Ubuntu 16.04)中测试,对我来说,我修复了更改文件 50-server.cnf 的错误代码>.
I use for testing in the virtual machine (Ubuntu 16.04), for me, I fixed the error changing the file 50-server.cnf.
我的服务器是 Ubuntu,所以修改下面的文件:
My server is Ubuntu, so changing the file below:
50-server.cnf
这个文件的路径:
/etc/mysql/mariadb.conf.d
PS:在更改之前创建文件的备份.
PS: Create a backup of the file before the change.
仅将文件中的 bind-address 127.0.0.0 更改为 bind-address 0.0.0.0
Only change in file the bind-address 127.0.0.0 to bind-address 0.0.0.0
在此重启服务后重试.
关于该用户,需要允许外部连接.
Regarding that user, need to allow for external connections.
希望这些信息对您有所帮助.
I hope that this info helps you.
这篇关于MariaDB 不允许远程连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:MariaDB 不允许远程连接
基础教程推荐
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 无法解决整理冲突 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
