I'm trying to setting up ssl
for mysql
by referring this.
I'm able to complete first 3 steps but having issue with the 4th which is as following:
GRANT ALL PRIVILEGES ON *.* TO 'ssluser'@'localhost' IDENTIFIED BY 'ssluser' REQUIRE SSL;
After executing this statement when I try to run mysql -ussluser -pssluser -P3430 --ssl-key=
, it shows following error: Can't connect to MySql server on 'localhost' (10061)
I tried to connect to mysql using mysql -ussluser -pssluser
, but it shows: Access denied for user 'ssluser'@'localhost' (using password: YES)
How can it say Access Denied when I have already executed GRANT statement.
Note that I executed mysql -ussluser -pssluser
before using GRANT atetement and I was able to connect to mysql
. I execute mysql> CHANGE MASTER TO MASTER_SSL=1;
at this point of time (which should enable SSL???).
Also, If I try SHOW GRANTS FOR 'ssluser'@'localhost';
I get
GRANT ALL PRIVILEGES ON *.* TO \'ssluser\'@\'localhost\' IDENTIFIED BY PASSWORD \'*C56A6573BEE146CB8243543295FD80ADCE588EFF\' REQUIRE SSL WITH GRANT OPTION
I'm trying it from couple of days but have found nothing. Any help appreciated.
Edit1
When I use show global variables like 'have_%ssl';
I get
have_openssl DISABLED
have_ssl DISABLED
and when I use this SHOW STATUS LIKE 'Ssl_cipher';
I get
Ssl_cipher _________
Also, I have created all server and client certificated and placed them in certs
directory inside mysql server
root directory.