Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure MySQL Workbench to not require SSL encryption

I'm trying not to enable using ssl for my connection, but I only have these 3 options in MySQL Workbench without 'No' and 'If Available' options. enter image description here

I tried re-installing MySQL Workbench, but it doesn't work. What am I supposed to do now??

like image 597
jialeee17 Avatar asked Oct 28 '21 02:10

jialeee17


People also ask

How do I disable SSL requirement in MySQL Workbench?

mysql/workbench/connections. xml , look for the connection that you want to disable ssl, and find <value type="int" key="useSSL">2</value> set it to 0, that will disable ssl for that connection.

How do I disable SSL in MySQL?

If your requirement is to completely turn off SSL on MySQL server instead of the default option of 'enabled, but optional mode', we can do the following: Delete the *. pem certificate and key files in the MySQL data directory. Start MySQL with SSL option turned off.

How can I connect to MySQL database without SSL?

You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. If you want to avoid the above MySQL warning, use the syntax mention in the beginning.

Do I need SSL for MySQL?

If, however, like you say that your MySQL server lives and is accessed only locally (never over WAN), you don't need SSL. If it's public facing or ever shares data over an insecure network, use SSL.


4 Answers

You can go to the Advanced tab and type the following in the Others field:

useSSL=0

like image 186
David Avatar answered Oct 26 '22 08:10

David


I had the same problem after upgrade to 8.0.27. Had no clue how to solve it.

I downgraded MySQL Workbench back to 8.0.19, and the 'No' and 'If Available' options came back.

Maybe they just want you to buy Navicat I guess.

like image 32
Nozomi Harry Avatar answered Oct 26 '22 09:10

Nozomi Harry


Instead of downgrading you can also edit the file that stores the connection details with a different editor. This works for at least 8.0.27.

Open /home/.mysql/workbench/connections.xml.

Set the value to 0 for the following for each connection you want to use without SSL:

<value type="int" key="useSSL">0</value>

Note that you'd have to repeat the steps if you edit the connection with the workbench again afterwards.

like image 4
Forage Avatar answered Oct 26 '22 09:10

Forage


MySQL Workbench Community version 8.0.28 is released and fix it - https://dev.mysql.com/downloads/workbench/

like image 1
Marco Thomazini Avatar answered Oct 26 '22 08:10

Marco Thomazini