mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 05:15:49 +03:00
[GH-ISSUE #44] A way to specify a non-standard socket? #30
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DBDiff#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @camateg on GitHub (Mar 28, 2017).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/44
Just a small feature request, but it wasn't clear how to use a non-standard socket. Something like this:
@jasdeepkhalsa commented on GitHub (Nov 24, 2017):
Hi @camateg,
We'll add this to this list of feature requests - would also be good to know if your request is for personal or corporate use - as I've personally never needed to use a custom socket before. Just want to know a little bit more about your exact use case :)
In the meantime, you can achieve what you want by:
src/DB/DBManager.php'unix_socket' => '/path/to/custom/socket/mysql/mysql.sock'as part of$this->capsule->addConnection, just like as follows:Alternatively, you could do something like
'unix_socket' => getenv('UNIX_SOCKET'),And then create/add to your
.envfile, as follows:UNIX_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock