You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The _createDumpConfigFile method in /vendor/craftcms/cms/src/db/mysql/Schema.php does not include the unixSocket setting when creating the temporary config file passed to mysqldump via the --defaults-extra-file flag.
When using a non-default socket path this will trigger the following error:
...failed with exit code 2: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock'
I realize there is a backupCommand General Config override, but it feels like if you designate the unixSocket in db.php it should be respected here. The temp file seems to take precedence over my [mysqldump] config so my backups fail.
Description
The
_createDumpConfigFile
method in/vendor/craftcms/cms/src/db/mysql/Schema.php
does not include theunixSocket
setting when creating the temporary config file passed tomysqldump
via the--defaults-extra-file
flag.When using a non-default socket path this will trigger the following error:
I realize there is a
backupCommand
General Config override, but it feels like if you designate theunixSocket
indb.php
it should be respected here. The temp file seems to take precedence over my[mysqldump]
config so my backups fail.Here's my quick fix.
Steps to reproduce
/storage/logs/web.log
for themysqldump
errorAdditional info
I'm using the AWS Lightsail Bitnami Nginx 1.12.2-3 AMI where everything is mapped to
/opt/bitnami/
The text was updated successfully, but these errors were encountered: