简体   繁体   中英

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.

Output of grep

在此处输入图片说明

Also I am unable to find .cnf file.

Output of cd /etc --> ls

在此处输入图片说明 Can anyone help me to resolve this issue.

my.cnf (my.ini on windows)

-> Replace the IP Address with yours

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

systemctl status firewalld
systemctl status iptables

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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