Skip to content

Improved MySQL migration system#12

Merged
jloh merged 1 commit into
mainfrom
improve_mysql_dump
Jul 8, 2025
Merged

Improved MySQL migration system#12
jloh merged 1 commit into
mainfrom
improve_mysql_dump

Conversation

@jloh
Copy link
Copy Markdown
Member

@jloh jloh commented Jul 8, 2025

no ref

  • Currently we prompt a user for a username to dump their Ghost database with which can be confusing if users can't remember their database details
  • The Ghost user likely has the required permissions to dump the database itself so we can first try that without prompting the user and then prompt them if it doesn't work
  • We added --no-tablespaces to the dump command to try and reduce the likelyhood of hitting users not having the PROCESS permission since most hosted DBs don't let this and Ghost's DB setup doesn't require DBs be dumped with that anyway

no ref

- Currently we prompt a user for a username to dump their Ghost database with which can be confusing if users can't remember their database details
- The Ghost user _likely_ has the required permissions to dump the database itself so we can first try that without prompting the user and _then_ prompt them if it doesn't work
- We added `--no-tablespaces` to the dump command to try and reduce the likelyhood of hitting users not having the `PROCESS` permission since most hosted DBs don't let this and Ghost's DB setup doesn't require DBs be dumped with that anyway
@jloh jloh requested a review from allouis July 8, 2025 06:28
@jloh jloh merged commit 6890f5c into main Jul 8, 2025
1 check passed
@jloh jloh deleted the improve_mysql_dump branch July 8, 2025 08:32
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