{"data":{"id":"magento2-38842","source":"github-pr","sourceRef":"magento/magento2#38842","title":"Theme compilation breaks when mysql host contains port information","pr":{"number":38842,"url":"https://github.com/magento/magento2/pull/38842","author":"mrodespin","mergedAt":"2024-09-05T13:38:34Z","mergeCommit":"e6ad856270618072bd7c332345435b5ca558d5c3","headCommit":"f050273c65f38e10f72987bb67b48e67ae5883ba","baseRef":"2.4-develop","diffSha256":"064e0b091c239f316ec92b46e159da89140932a4a70a549bb87d4337cad640ea"},"issues":[{"number":38799,"url":"https://github.com/magento/magento2/issues/38799","title":"Theme compilation breaks when mysql host contains port information","labels":["Area: Performance","Component: DB","Issue: Confirmed","Priority: P3","Progress: done","Reported on 2.4.7","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":"2.4.7","codeMatch":{"2.4.6":"conflict","2.4.6-p1":"conflict","2.4.6-p2":"conflict","2.4.6-p3":"conflict","2.4.6-p4":"conflict","2.4.6-p5":"conflict","2.4.6-p6":"conflict","2.4.6-p7":"conflict","2.4.6-p8":"conflict","2.4.6-p9":"conflict","2.4.6-p10":"conflict","2.4.6-p11":"conflict","2.4.6-p12":"conflict","2.4.6-p13":"conflict","2.4.6-p14":"conflict","2.4.6-p15":"conflict","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10"],"components":["magento/framework"],"files":[{"path":"lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php","change":"modified","package":"magento/framework"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":6,"mergeBatched":false,"excluded":null,"sections":{"description":"Exception: \n`Port must be configured within host parameter (like localhost:3306 in /var/www/lehner_dev/src/www/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:464`","stepsToReproduce":"1. Go to `env.php`\n1. Set the port information to the host in the db connection. e.g. `db<'connection']['default']['host'] = 'localhost:3306'`\n1. Execute  `./magento.sh setup:static-content:deploy`","expectedResult":"The theme is deployed","actualResult":"Exception: \n`Port must be configured within host parameter (like localhost:3306 in /var/www/lehner_dev/src/www/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:464`","source":"issue"},"signatures":["Exception:"],"labels":{"area":["Performance"],"component":["DB"],"priority":"P3","severity":null,"reportedOn":["2.4.7"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"a7a0a19e01a2e94bc13ac0ddc9c8a08ae0c319fea8e9e2102d6cd38b905abd75","isBugfix":0.9759,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9609,"feature":0.0102,"refactor":0.0122,"tests_only":0.0057,"docs_only":0.0049,"dependency":0.0061},"confidence":0.9084},"scope":{"score":0.4258,"probabilities":{"0":0.6573,"1":0.2597,"2":0.083},"confidence":0.2595},"risk":{"score":0.5909,"probabilities":{"0":0.5944,"1":0.2202,"2":0.1854},"confidence":0.1543},"area":{"choice":"framework","probabilities":{"catalog":0.0117,"checkout":0.009,"customer":0.0081,"admin":0.0275,"graphql_api":0.0071,"framework":0.832,"frontend":0.0661,"other":0.0385},"confidence":0.6562},"securityRelevant":0.0069,"reportedVersion":{"choice":"2.4.7","probabilities":{"2.4.0":0.0023,"2.4.0-p1":0.0025,"2.4.1":0.0022,"2.4.1-p1":0.0024,"2.4.2":0.0025,"2.4.2-p1":0.0027,"2.4.2-p2":0.0029,"2.4.3":0.0035,"2.4.3-p1":0.0037,"2.4.3-p2":0.0039,"2.4.3-p3":0.0035,"2.4.4":0.0033,"2.4.4-p1":0.0032,"2.4.4-p10":0.0042,"2.4.4-p11":0.0046,"2.4.4-p12":0.0039,"2.4.4-p13":0.0038,"2.4.4-p14":0.0044,"2.4.4-p15":0.0037,"2.4.4-p16":0.0034,"2.4.4-p17":0.0036,"2.4.4-p18":0.0029,"2.4.4-p2":0.0023,"2.4.4-p3":0.0025,"2.4.4-p4":0.0027,"2.4.4-p5":0.0028,"2.4.4-p6":0.0033,"2.4.4-p7":0.0035,"2.4.4-p8":0.0037,"2.4.4-p9":0.0028,"2.4.5":0.0034,"2.4.5-p1":0.0031,"2.4.5-p10":0.0028,"2.4.5-p11":0.0035,"2.4.5-p12":0.0044,"2.4.5-p13":0.0037,"2.4.5-p14":0.0035,"2.4.5-p15":0.0032,"2.4.5-p16":0.0032,"2.4.5-p17":0.0034,"2.4.5-p2":0.0027,"2.4.5-p3":0.0029,"2.4.5-p4":0.0032,"2.4.5-p5":0.0034,"2.4.5-p6":0.0039,"2.4.5-p7":0.0038,"2.4.5-p8":0.0034,"2.4.5-p9":0.0027,"2.4.6":0.0091,"2.4.6-p1":0.0129,"2.4.6-p10":0.0073,"2.4.6-p11":0.009,"2.4.6-p12":0.0073,"2.4.6-p13":0.0065,"2.4.6-p14":0.0061,"2.4.6-p15":0.0063,"2.4.6-p2":0.0034,"2.4.6-p3":0.0045,"2.4.6-p4":0.0058,"2.4.6-p5":0.0045,"2.4.6-p6":0.0051,"2.4.6-p7":0.0059,"2.4.6-p8":0.0055,"2.4.6-p9":0.0034,"2.4.7":0.5342,"2.4.7-p1":0.0298,"2.4.7-p10":0.0103,"2.4.7-p2":0.015,"2.4.7-p3":0.0148,"2.4.7-p4":0.0149,"2.4.7-p5":0.0116,"2.4.7-p6":0.0136,"2.4.7-p7":0.013,"2.4.7-p8":0.0105,"2.4.7-p9":0.0084,"2.4.8":0.008,"2.4.8-p1":0.0082,"2.4.8-p2":0.0078,"2.4.8-p3":0.0073,"2.4.8-p4":0.0063,"2.4.8-p5":0.0065,"2.4.9":0.0089,"unspecified":0.0114},"confidence":0.2808},"backportWorthy":{"score":1.5213,"probabilities":{"0":0.0934,"1":0.2918,"2":0.6148},"confidence":0.2077}},"curated":{"title":"Fixes static content deploy failing when the database host includes a port","description":"When the mysql host in env.php contains port information, such as localhost:3306, setup:static-content:deploy with multiple jobs breaks with the exception \"Port must be configured within host parameter\". In avoidReusingParentProcessConnection(), the Mysql adapter now sets the host to host:port and unsets the separate port when a port is configured and the host has no ':'.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38842 details"}