简体   繁体   English

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

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

I am trying to connect MariaDB 10.3(installed on CentOS 7.6) from remote machine, but I am not able connect.我正在尝试从远程机器连接 MariaDB 10.3(安装在 CentOS 7.6 上),但我无法连接。

Output of grep

在此处输入图片说明

Also I am unable to find .cnf file.我也找不到 .cnf 文件。

Output of cd /etc --> ls

在此处输入图片说明 Can anyone help me to resolve this issue.谁能帮我解决这个问题。

my.cnf (my.ini on windows) my.cnf(Windows 上的 my.ini)

-> Replace the IP Address with yours -> 用你的 IP 地址替换

bind-address        = 123.456.789.10

then然后

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

Last最后的

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

Also check your iptables and firewalld还要检查您的 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