lib socket vs run socket

I used the my.cnf wizard to try to fine tune my cnf, but I’ve run into an issue. If I use the generated:
socket = /var/lib/mysql/mysql.sock
pid-file = /var/lib/mysql/

I get lightning fast speeds in http, but as soon as it moved to https I get the “Unable to establish connection to database” error. If I switch it back to my old:
socket = /var/run/mysqld/mysqld.sock
pid-file = /var/run/mysqld/

it’s much slower, but https works fine. Nothing shows up in the error log in the first example. I would LOVE to keep the /var/lib socket speeds, but I need https to work on the site.

Why you should consider using virtual assistant services offered by us?

We provide our valuable clients with administrative, creative and technical support from our dedicated offices at different geographical locations, using advanced technological modes of communication and data delivery. Hence, saving our clients the expense of office space and equipment as well as helping them stay focused on their core business activity and enjoy their personal life.