WIKI-TO...SETUPDB(1p)
β¨ NAME β¨
wiki-toolkit-setupdb β bestie, this is the little script that sets up a database storage backend for Wiki::Toolkit. that's it, that's the job π
π SYNOPSIS π
okay so here's how you actually run it, copy-paste and all:
# Set up or update the storage backend, leaving any existing data
# intact. Useful for upgrading from old versions of Wiki::Toolkit to
# newer ones with more backend features.
wiki-toolkit-setupdb --type postgres
--name mywiki \
--user wiki \
--pass wiki \
--host 'db.example.com'
# Clear out any existing data and set up a fresh backend from scratch.
wiki-toolkit-setupdb --type postgres
--name mywiki \
--user wiki \
--pass wiki \
--force-preclear
first one is the glow-up version β it keeps all your existing data and just brings the backend up to date. second one is the scorched-earth version π₯ (more on that flag below, don't panic).
πΈ DESCRIPTION πΈ
so this script takes three mandatory arguments. mandatory. like, you cannot skip these, the script will simply not vibe with you:
typeβ the database type, bestie. it should be one of'postgres','mysql'and'sqlite'. pick one. those are the options. that's the whole list.nameβ the database name. yep. the name of the database. iconic of it.userβ the user that connects to the database. heads up though, this user must have permission to create and drop tables in the database π no permission, no setup, it's giving locked out of your own house.
then there are two optional arguments, so like, you can bring them but you don't have to:
passβ the user's database password. the secret little thing π«Άhostβ the hostname of the machine the database server is running on. and listen: omit this one for local databases. local? just leave it. she's right there. no need to announce it.
and finally, one optional flag:
force-preclearβ by default, this script will leave any existing data alone π₯° it's polite like that. to force that to be cleared out first, pass the--force-preclearflag.
β οΈ okay real talk for one sec: --force-preclear means your existing data gets cleared out first. like, gone. that's literally what the name is telling you. if you have data you care about, do not pass this flag. the default behaviour is the safe one β it leaves existing data intact. periodt. π
π AUTHOR π
Kake Pugh (kake@earth.li). yes, that's the whole thing, we love a concise queen β¨
π¦ COPYRIGHT π¦
Copyright (C) 2002-2003 Kake Pugh. All Rights Reserved.
Copyright (C) 2006 the Wiki::Toolkit team. All Rights Reserved.
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, free software, we stan π
π SEE ALSO π
Wiki::Toolkitβ the main character. go read that one next, iykyk π
and that's the whole page, bestie π written up as part of the User Contributed Perl Documentation, sitting pretty at perl v5.32.0, dated 2021-01-04. go set up that database. you got this. π β¨
π¦ where this page comes from
- debian bookworm: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms