ioi/isolate

Trying to run mysql through .sock

The-Neo-Noir opened this issue · 2 comments

I am trying to run mysql through isolate process but I get
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I am sure the mysql server is running fine. and I could connect without through isolate.

Am I to believe the sandbox is somehow preventing to access mysqld.sock ? If I were to allow this how can I do it ?

Please help I have tried a whole different ways but could not able to achieve it.

This is expected behavior. It would be a poor sandbox if it allowed access to other program's sockets.

Thanks @gollux for answering. You are right. Accessing other programs sock would be poor isolation.
I was looking for a way to let it, and I found it. Isolate does allow it. You just have to use the directory isolation level, I choose rw for the sock folder. And it worked.