8000 Fix: php artisan db command if no password by mr-chetan · Pull Request #55761 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

Fix: php artisan db command if no password #55761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025
Merged

Conversation

mr-chetan
Copy link
Contributor

If there is no password in the DB connection, it will not connect and will throw an error.

This pull request includes a small update to the getMysqlArguments method in src/Illuminate/Database/Console/DbCommand.php. The change ensures that the --password argument is only included if a password is provided, improving the handling of optional connection parameters.

If there is no password in the database connection, it will not be connected, and an error will be thrown.
7A6D
@taylorotwell taylorotwell merged commit b85f440 into laravel:12.x May 19, 2025
59 checks passed
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.

2 participants
0