簡體   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