R
R
raury2021-12-05 20:23:32
MySQL
raury, 2021-12-05 20:23:32

How to locally connect to db with skip-networking mysql 8.0.27?

In jdbc I passed the following url:

jdbc:mysql://localhost:3306/test/useSSL=false&allowPublicKeyRetrieval=true

But it throws an error:
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

Port shows 0:
show variables like 'port';

Config "/etc/mysql/my.cnf":
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
[mysqld]
port=3306
bind-address=127.0.0.1
mysqlx-bind-address=127.0.0.1
skip-networking
skip-grant-tables

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
raury, 2021-12-05
@raury

Thank you all for your attention. I solved all the problems by demolishing this shit and installing postgres.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question