WIKI-TO...SETUPDB(1)

πŸ“¦
version 0.87 Β· 2 versions
, in fedora 43

πŸ’– WIKI-TO...SETUPDB πŸ’–

okay so bestie, this is wiki-toolkit-setupdb, straight outta the User Contributed Perl Documentation section (section 1, the command-y one, iykyk). It sets up a database storage backend for Wiki::Toolkit. that's the whole vibe. let's get into it πŸ’…


✨ NAME ✨

wiki-toolkit-setupdb β€” set up a database storage backend for Wiki::Toolkit. literally its whole job, no notes πŸŽ€


🌸 SYNOPSIS 🌸

the "don't touch my data, I'm just upgrading" route: sets up or updates the storage backend and leaves any existing data intact. this is the one you want when you're upgrading from old versions of Wiki::Toolkit to newer ones with more backend features. so useful. so iconic.

# 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'

the "nuke it and start fresh" route: clears out any existing data and sets up a brand new backend from scratch. scorched earth. main character energy.

# 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

πŸ¦‹ DESCRIPTION πŸ¦‹

So this script takes three mandatory arguments (yes, mandatory, like, you actually have to give these, no skipping πŸ™ˆ):

  • type β€” the database type. should be one of 'postgres', 'mysql' and 'sqlite'. those are the options, pick one πŸ’«
  • name β€” the database name.
  • user β€” the user that connects to the database. heads up though: it must have permission to create and drop tables in the database. no permission, no tables, no wiki. periodt.

Then there are two optional arguments (these ones you can ghost if you want):

  • pass β€” the user's database password.
  • host β€” the hostname of the machine the database server is running on. omit it for local databases, it's giving "I live here anyway" 🏠

And 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-preclear" flag.
⚠️ okay so real talk: --force-preclear will clear out existing data first. that's data. gone. be sure bestie πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Kake Pugh (kake@earth.li). an absolute legend, we stan 🫢


     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, open source πŸ’–


πŸ’œ SEE ALSO πŸ’œ

  • Wiki::Toolkit β€” the whole reason we're here, go read it, it's the moment ⭐

and that's the tea, bestie πŸ“ this was page WIKI-TO...SETUPDB(1) from perl v5.42.0, dated 2025-07-25. go set up that backend, you got this 🧚✨

πŸ“¦ where this page comes from