-
Notifications
You must be signed in to change notification settings - Fork 5
Configure drush to skip requiring ssl for remote db connections #19
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
Open
tekante
wants to merge
2
commits into
master
Choose a base branch
from
disable-forced-db-ssl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| sql: | ||
| cli: | ||
| options: | ||
| extra: '--skip-ssl' | ||
| query: | ||
| options: | ||
| extra: '--skip-ssl' | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: phase2/docker-cli
Length of output: 77
🏁 Script executed:
Repository: phase2/docker-cli
Length of output: 4257
🏁 Script executed:
Repository: phase2/docker-cli
Length of output: 150
🏁 Script executed:
Repository: phase2/docker-cli
Length of output: 3407
🌐 Web query:
Drush config search paths site directory💡 Result:
Drush’s own configuration files (
drush.yml) are discovered in this order (highest precedence first):sites/<site>/drush.yml(e.g.sites/default/drush.yml)sites/all/drush,WEBROOT/drush, orPROJECTROOT/drush--config~/.drush/drush.yml/etc/drush/drush.yml(orC:\ProgramData\Drush\drush.yml) [1]To add extra config search paths, put this in a discovered
drush.yml(e.g.sites/default/drush.yml):(Entries may be a file path or a directory containing
drush.yml.) [2]To see exactly what Drush loaded, run:
drush status --fields=drush-conf[1]drush status --fields=drush-conf --format=yaml[2]If you meant Drupal config sync import/export paths (used by
drush cim/cex), those come from the site’s$config_directories['sync']insites/<site>/settings.php, or you can override per command withdrush cim --source=/pathanddrush cex --destination=/path. [3] [4]🌐 Web query:
Drush sql command options extra configuration key schema💡 Result:
In Drush,
--extrais a common option on thesql:*commands that lets you append raw flags to the underlying DB client “connect string” (e.g., mysql / psql invocation). For example:drush sql:cli --extra=--skip-column-names. [1]Command-line options (examples)
drush sql:cli --extra=EXTRA(open SQL CLI) [1]drush sql:connect --extra=EXTRA(print a connection command) [2]drush sql:query --extra=EXTRA(run a query) [3]drush sql:drop --extra=EXTRA(drop all tables) [4]Related:
sql:syncalso has--extra-dump(passes options tomysqldumpor equivalent), plus table-selection options like--structure-tables-key,--skip-tables-key, etc. [5]Drush YAML configuration “schema” (key path) for
extraTo persist the same option via config (e.g.,
drush.ymlor an alias file), set it under command-specific options like this: [6]Similarly, you can preconfigure other sql command options (example shown for
sql:dump): [6]Where the table-key lists live (non-options)
If you use
--structure-tables-key=common,--skip-tables-key=common, etc., the actual lists are configured under the top-levelsql:section (not undercommand:), e.g.sql: structure-tables: common: ...andsql: skip-tables: common: .... [6]Sources: Drush command docs and configuration docs. [1][2][3][4][5][6]
🏁 Script executed:
Repository: phase2/docker-cli
Length of output: 222
Fix Drush config path and schema: file won't be loaded and keys are incorrect.
The config file at
/home/docker/.drush/config/drush.ymlis not discoverable by Drush's default search paths (which include~/.drush/drush.yml,/etc/drush/drush.yml, and project-root paths, but not~/.drush/config/). Additionally, the YAML structure is missing the requiredcommand:prefix—it should be undercommand: sql:not justsql:.Either move the file to
~/.drush/drush.ymland fix the schema:or add an explicit config path reference in a discovered
drush.yml.🤖 Prompt for AI Agents