在my.ini中设置证书路径后,仍然禁用MariaDB变量'have_ssl'(Windows)

时间:2020-05-03 10:39:23

标签: windows windows-10 mariadb

documentation之后,必须设置变量:

$('#NumDepositi').click(function() {
        $("#NumDepositi").show();
        $("#NumDepositi").css('visibility','visible');
        $("#NumDepositi").css('display','block');
    /* you can use 'this' instead, like:
        $(this).show();
        $(this).css('visibility','visible');
        $(this).css('display','block');
    */
});

转换为窗口,如其他答案所示,请注意避免[mariadb] ... ssl_cert = /etc/my.cnf.d/certificates/server-cert.pem ssl_key = /etc/my.cnf.d/certificates/server-key.pem ssl_ca = /etc/my.cnf.d/certificates/ca.pem \s逃脱。

/s

但是,连接之后:

  • [mariadb] ssl_cert="C://Users//myUser//MariaDB//SSL_Certs//server-cert.pem" ssl_key="C://Users//myUser//MariaDB//SSL_Certs//server-key.pem" ssl_ca="C://Users//myUser//MariaDB//SSL_Certs//ca.pem" ssl=true show variables like 'have_ssl';,而不是DISABLED
  • YES为空。

1 个答案:

答案 0 :(得分:1)

打开show session status like 'ssl_cipher';并找到MariaDB服务,并记下“登录身份”用户名。为services.msc目录授予ReadList folder contents的权限,并授予“登录身份”列中的用户名(在我的情况下为NETWORK SERVICE)。 / p>

此后,"C://Users//myUser//MariaDB//SSL_Certs//被设置为show variables like 'have_ssl';