# libperconaserverclient

**URL:** <https://forums.percona.com/t/libperconaserverclient/5108>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [September 25, 2016, 6:13am UTC](https://forums.percona.com/t/libperconaserverclient/5108 "2016-09-25T06:13:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gunz](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gunz](https://forums.percona.com/u/gunz)\
**Post date:** [September 25, 2016, 6:13am UTC](https://forums.percona.com/t/libperconaserverclient/5108/1 "2016-09-25T06:13:38Z")

</div>

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/](http://tools.percona.com/)) version REL5-20120208

# Configuration name server-9 generated for [gunzo&#64;gunzo.eu](mailto:gunzo&#64;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!
