Skip to content

🐛 Add missing port to wordpress database connection config#506

Merged
retlehs merged 1 commit into
mainfrom
fix/db-command-missing-port
Mar 8, 2026
Merged

🐛 Add missing port to wordpress database connection config#506
retlehs merged 1 commit into
mainfrom
fix/db-command-missing-port

Conversation

@retlehs

@retlehs retlehs commented Mar 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds 'port' => env('DB_PORT', 3306) to the wordpress database connection config
  • The wp acorn db command was failing with Empty value for 'port' specified because the wordpress connection lacked a port key, while Laravel's DbCommand unconditionally references $connection['port'] when building CLI arguments
  • Other database connections (mysql, mariadb, pgsql, sqlsrv) already define a port — this aligns the wordpress connection with them

Closes #494

🤖 Generated with Claude Code

Closes #494

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@retlehs retlehs merged commit 36c9aac into main Mar 8, 2026
3 checks passed
@retlehs retlehs deleted the fix/db-command-missing-port branch March 8, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wp acorn db connection fails due to missing port with default wordpress config

1 participant