libperconaserverclient

Hello,

After I’ve installed percona server 5.7 I am experiencing problems with connecting my apps with mysql using socket. It says weird error:
MySQL Error Message: Can’t connect to local MySQL server through socket ‘’ (111)

My /etc/mysql/my.cnf is

Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208

Configuration name server-9 generated for gunzo@gunzo.eu at 2016-09-25 08:23:14

[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

[mysql]

CLIENT

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

[mysqld]

GENERAL

user = mysql
default-storage-engine = InnoDB
socket = /var/run/mysqld/mysqld.sock
pid-file = /var/lib/mysql/mysql.pid

MyISAM

key-buffer-size = 32M

myisam-recover = FORCE,BACKUP

SAFETY

max-allowed-packet = 16M
max-connect-errors = 1000000

DATA STORAGE

datadir = /var/lib/mysql/

CACHES AND LIMITS

tmp-table-size = 32M
max-heap-table-size = 32M
query-cache-type = 0
query-cache-size = 0
max-connections = 500
thread-cache-size = 50
open-files-limit = 65535
table-definition-cache = 1024
table-open-cache = 2048

INNODB

innodb-flush-method = O_DIRECT
innodb-log-files-in-group = 2
innodb-log-file-size = 2G
innodb-flush-log-at-trx-commit = 2
innodb-file-per-table = 1
innodb-buffer-pool-size = 20G
innodb_doublewrite=1
innodb_flush_log_at_trx_commit=1
innodb_buffer_pool_instances=6
innodb_change_buffering=none
innodb_adaptive_hash_index=OFF
innodb_flush_method=O_DIRECT
innodb_flush_neighbors=0
innodb_read_io_threads=6
innodb_write_io_threads=6
innodb_lru_scan_depth=8192
innodb_io_capacity=15000
innodb_io_capacity_max=25000
loose-innodb-page-cleaners=4
table_open_cache_instances=64
table_open_cache=5000
loose-innodb-log_checksum-algorithm=crc32
loose-innodb-checksum-algorithm=strict_crc32
max_connections=50000
skip_name_resolve=ON
loose-performance_schema=ON
loose-performance-schema-instrument=‘wait/synch/%=ON’

innodb-flush-neighbor_pages = 0

innodb-adaptive-flushing_method = keep_average

LOGGING

log-error = /var/lib/mysql/mysql-error.log
log-queries-not-using-indexes = 0
slow-query-log = 0
slow-query-log-file = /var/lib/mysql/mysql-slow.log
sync_binlog = 0

sql_mode = “”

I would appriciate some help. Thank you!