1WIKI-TOOLKIT-SETUPDB(1)User Contributed Perl DocumentatioWnIKI-TOOLKIT-SETUPDB(1)
2
3
4
6 wiki-toolkit-setupdb - Set up a database storage backend for
7 Wiki::Toolkit.
8
10 # Set up or update the storage backend, leaving any existing data
11 # intact. Useful for upgrading from old versions of Wiki::Toolkit to
12 # newer ones with more backend features.
13
14 wiki-toolkit-setupdb --type postgres
15 --name mywiki \
16 --user wiki \
17 --pass wiki \
18 --host 'db.example.com'
19
20 # Clear out any existing data and set up a fresh backend from scratch.
21
22 wiki-toolkit-setupdb --type postgres
23 --name mywiki \
24 --user wiki \
25 --pass wiki \
26 --force-preclear
27
29 Takes three mandatory arguments:
30
31 type
32 The database type. Should be one of 'postgres', 'mysql' and
33 'sqlite'.
34
35 name
36 The database name.
37
38 user
39 The user that connects to the database. It must have permission to
40 create and drop tables in the database.
41
42 two optional arguments:
43
44 pass
45 The user's database password.
46
47 host
48 The hostname of the machine the database server is running on (omit
49 for local databases).
50
51 and one optional flag:
52
53 force-preclear
54 By default, this script will leave any existing data alone. To
55 force that to be cleared out first, pass the "--force-preclear"
56 flag.
57
59 Kake Pugh (kake@earth.li).
60
62 Copyright (C) 2002-2003 Kake Pugh. All Rights Reserved.
63 Copyright (C) 2006 the Wiki::Toolkit team. All Rights Reserved.
64
65 This code is free software; you can redistribute it and/or modify it
66 under the same terms as Perl itself.
67
69 Wiki::Toolkit
70
71
72
73perl v5.34.0 2021-07-23 WIKI-TOOLKIT-SETUPDB(1)