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

Support XDG_DATA_HOME #56

Merged
merged 8 commits into from
May 7, 2023
Merged

Support XDG_DATA_HOME #56

merged 8 commits into from
May 7, 2023

Conversation

yuki777
Copy link
Collaborator

@yuki777 yuki777 commented May 7, 2023

  • Close Composer update deletes database data dir. yuki777/dbdb-php#24
  • The database installation location will be changed.
    • Before: path/to/dbdb
    • After: $XDG_DATA_HOME/dbdb or $HOME/.local/share/dbdb
  • Migrate DBDB from v1 to v2.
    • Set $XDG_DATA_HOME to the existing DBDB installation directory
    • e.g. XDG_DATA_HOME=$HOME/git

@yuki777 yuki777 merged commit 5c45112 into main May 7, 2023
16 checks passed
@yuki777 yuki777 deleted the install-dir branch May 7, 2023 03:49
@yuki777
Copy link
Collaborator Author

yuki777 commented May 7, 2023

Clean up your existing DB installation directory

cd path/to/dbdb

# Show databases
./dbdb.sh

# Delete ALL databases by dbdb
# e.g. ./mysql/delete.sh {name}

# Delete database datadir and basedir by rm command
rm -fr mongodb/versions
rm -fr mysql/versions
rm -fr postgresql/versions
rm -fr redis/versions

# Delete database sources by rm command
rm -fr mongodb/mongodb-*.tar.gz
rm -fr mysql/mysql-*.tar.gz
rm -fr postgresql/postgresql-*.tar.gz
rm -fr redis/redis-*.tar.gz

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.

Composer update deletes database data dir.
1 participant