2017-04-11 2 views
0

Versucht, einen Benutzer in MariaDB 10.1.22 auf einem Centos7-Server hinzuzufügen, und ich bekomme einen SQL-Syntaxfehler.MariaDB 10.1 erfordern ssl nicht gültig

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 | 
+---------------------+---------------------------------+ 

Antwort