Where is mysql.sock?

1

I'm trying to configure "Bacula" on my Ubuntu server which was programed with a PostgreSQL preference.

They allow a socket to be used for MySQL but it is missing from my install. I have tried a few things suggested online but most posts are 3 years old or more. It is just plain not there. Where can I get the mysql.sock file?

Latest MySQL Ubuntu Server 18.04

naps1saps

Posted 2018-08-07T21:55:44.717

Reputation: 103

Answers

1

It should be located under /var/run, check /var/run/mysqld/mysqld.sock

Bernard Wei

Posted 2018-08-07T21:55:44.717

Reputation: 126

AH yes thank you! No wonder my search found nothing. It's mysqld – naps1saps – 2018-08-07T23:31:21.737

Also if you come here looking for MySQL connection to Bacula, you need to run apt-get install bacula-director-mysql – naps1saps – 2018-08-08T17:47:39.203