Skip to content
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

(occ db:convert-type) Add support for UNIX sockets #39242

Merged

Conversation

joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Jul 8, 2023

Summary

Adds support to occ db:convert-type to support UNIX socket connections via MySQL/MariaDB:

  • Uses same dbhost / hostname parameter parsing logic (adapted) as used elsewhere (at least the relevant parts) for consistency.
  • Adds UI support for non-passworded connections.

Checklist

@solracsf solracsf added the 3. to review Waiting for reviews label Jul 9, 2023
@solracsf solracsf added this to the Nextcloud 28 milestone Jul 9, 2023
@szaimen szaimen requested review from a team, ArtificialOwl, icewind1991 and nfebe and removed request for a team July 13, 2023 16:16
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay though I left an inline suggestion. Do you mind using regex instead?

@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
@AndyScherzinger AndyScherzinger force-pushed the db-convert-type-mysql-socket-no-pw branch from 864c17c to 1ac39e7 Compare February 27, 2024 13:25
This was referenced Mar 12, 2024
This was referenced Mar 20, 2024
@skjnldsv skjnldsv mentioned this pull request Mar 28, 2024
81 tasks
@skjnldsv skjnldsv modified the milestones: Nextcloud 29, Nextcloud 30 Mar 28, 2024
@skjnldsv skjnldsv added 2. developing Work in progress stale Ticket or PR with no recent activity labels Jul 27, 2024
@skjnldsv skjnldsv removed the 3. to review Waiting for reviews label Jul 27, 2024
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
@skjnldsv skjnldsv closed this Aug 14, 2024
@skjnldsv skjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
@skjnldsv
Copy link
Member

skjnldsv commented Aug 16, 2024

Hey @joshtrichards
We cleaned up some old staled PRs! But a quick look at this PR seems like a good candidate for an update, let me take over to help you get it merge in 31! 💪 🤗

@skjnldsv skjnldsv reopened this Aug 16, 2024
@nextcloud nextcloud deleted a comment from backportbot bot Aug 16, 2024
Fixes nextcloud#31998

Adds support to `occ db:convert-type` to support UNIX socket connections via MySQL/MariaDB. Uses same `dbhost` / `hostname` parameter parsing logic (adapted) as used elsewhere (at least the relevant parts) for consistency.

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
@skjnldsv skjnldsv removed stale Ticket or PR with no recent activity backport-request labels Aug 16, 2024
@skjnldsv skjnldsv force-pushed the db-convert-type-mysql-socket-no-pw branch from 1ac39e7 to 71fff03 Compare August 16, 2024 07:16
@skjnldsv skjnldsv requested a review from nfebe August 16, 2024 07:18
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@susnux
Copy link
Contributor

susnux commented Aug 31, 2024

@joshtrichards as you are a member of Nextcloud organization, could you maybe move this into a local branch? Some CI does not work on forks 😔

@skjnldsv skjnldsv merged commit c28340d into nextcloud:master Sep 4, 2024
156 of 161 checks passed
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Sep 4, 2024
@skjnldsv
Copy link
Member

skjnldsv commented Sep 4, 2024

Merged, anyway, tests passed locally for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: db:convert-type does not support mysql passwordless unix socket auth
7 participants