 -i &#39;/bind-address/c\bind-address  = 0.0.0.0&#39; /etc/mysql/mariadb.conf.d/50-server.cnf
</code></pre><p>设置认证信息：</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ cat &lt;&lt;EOF | sudo mysql
# 授予 root 的访问权限
GRANT ALL PRIVILEGES ON *.* TO &#39;root&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;password&#39; WITH GRANT OPTION;
# 授予 root 其他 IP 的访问权限
CREATE USER &#39;root&#39;@&#39;%&#39; IDENTIFIED BY &#39;password&#39;;
GRANT ALL PRIVIL