繁体   English   中英

无法在 CentOS 7.6 上远程连接 MariaDB 10.3

[英]Unable to connect MariaDB 10.3 remotely on CentOS 7.6

我正在尝试从远程机器连接 MariaDB 10.3(安装在 CentOS 7.6 上),但我无法连接。

Output of grep

在此处输入图片说明

我也找不到 .cnf 文件。

Output of cd /etc --> ls

在此处输入图片说明 谁能帮我解决这个问题。

my.cnf(Windows 上的 my.ini)

-> 用你的 IP 地址替换

bind-address        = 123.456.789.10

然后

CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypass';
CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypass';

最后的

GRANT ALL ON *.* TO 'myuser'@'localhost';
GRANT ALL ON *.* TO 'myuser'@'%';

还要检查您的 iptables 和 firewalld

systemctl status firewalld
systemctl status iptables

iptables -L
firewall-cmd --list-all-zones

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM