GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '<password>' WITH GRANT OPTION;
%表示所有网段
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.%' IDENTIFIED BY '<remote-password>' WITH GRANT OPTION;
仅允许192.168.1.*网段访问
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '<password>' WITH GRANT OPTION;
%表示所有网段
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.%' IDENTIFIED BY '<remote-password>' WITH GRANT OPTION;
仅允许192.168.1.*网段访问
本文标题:MariaDB远程访问
本文链接:https://www.haomeiwen.com/subject/xuvlfctx.html
网友评论