I want to make use of the mysql 8 parallel import utility: https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-utilities-parallel-table.html

Therefore trying to establish a session as follows:

\connect mysql://root@localhost


Creating a Classic session to 'root@localhost'
MySQL Error 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

What is wrong here? And why does mysql think it should use /var/lib/mysql/mysql.sock, while my /etc/mysql/mysql.conf.d/mysqld.cnf shows:

socket      = /var/run/mysqld/mysqld.sock

This is a default mysql8 installation without any changes. Shoudn't it work by default like this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.