2017-04-11 38 views
0

试图在MariaDB 10.1.22中添加用户到centos7服务器上,并且出现sql语法错误。MariaDB 10.1需要ssl无效

MariaDB [(none)]> create user foo identified by 'password' require SSL; 
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'require SSL' at line 1 
MariaDB [(none)]> show variables like '%ssl%'; 
+---------------------+---------------------------------+ 
| Variable_name  | Value       | 
+---------------------+---------------------------------+ 
| have_openssl  | YES        | 
| have_ssl   | DISABLED      | 
| ssl_ca    | /etc/pki/tls/private/ca.csr  | 
| ssl_capath   |         | 
| ssl_cert   | /etc/pki/tls/certs/ca.crt  | 
| ssl_cipher   |         | 
| ssl_crl    |         | 
| ssl_crlpath   |         | 
| ssl_key    | /etc/pki/tls/private/ca.key  | 
| version_ssl_library | OpenSSL 1.0.1e-fips 11 Feb 2013 | 
+---------------------+---------------------------------+ 

回答