MySQL refers to the secure communication as SSL (Secure Socket Layer). While this term is still used, the actual technology is now TLS (Transport Layer Security). Recent MySQL program files default to TLS (SSL) support. Older versions, such as version 5.7 offer secure communication, but do not enable it by default.
This procedure sets configures a MySQL database and the database user to require secure communication.
Use SSL is configured to enable secure communication.If available, which means that it supports TLS.
C:\Program Files\MySQL\MySQL Server n.n\bin (replace n.n with the MySQL version number).mysql -uname -p (replace name with your MySQL user name).C:\Program Files\MySQL\MySQL Server 5.7\bin>mysql —uentsecuser —p
Enter password: **********
Welcome to the MySQL monitor. ... etc.
mysql> show global variables like ‘%ssl%’;.have openssl is YES and the value of have ssl is YESmysql> UPDATE mysql.user SET ssl type = ‘ANY’; where user is the name of a user you created in MySQL Workbench.
mysql> FLUSH PRIVILEGES;