]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - INSTALL.mysql
initial commit for 1.1.4
[SourceForge/phpwiki.git] / INSTALL.mysql
1
2 Installing phpwiki with mySQL 
3 -----------------------------
4
5 This assumes that you have a working mySQL server and client setup.
6 Installing mySQL is beyond the scope of this document.
7 For more information on mySQL go to http://www.mysql.org/
8
9 1. If you do not have a suitable database already, create one.
10
11         mysqladmin -uuser -ppaswword create phpwiki
12
13 2. If necessary create a user for that database which has the rights to
14    select, insert, update, delete. A mySQL grant statment for this user
15    would look like this:
16     
17         GRANT select, insert, update, delete
18         ON phpwiki.*
19         TO wikiuser@localhost
20         IDENTIFIED BY 'password';
21
22 3. Create tables inside your database.
23
24         CREATE table wiki (
25                 page varchar(100) primary key,
26                 data mediumtext);
27
28         CREATE table archive (
29                 page varchar(100) primary key,
30                 data mediumtext);
31
32 4. Edit wiki_config.php3 to reflect your settings.
33
34         a) comment out the DBM settings
35         b) uncomment the mySQL settings
36         c) set $mysql_user to "wikiuser" as used in step 2
37         d) set $mysql_pwd to "password" as used in step 2
38         e) set $mysql_db to "phpwiki" as used in step 1
39         f) set MAX_DBM_ATTEMPTS to a low number or to '1'.
40            Retrying has not much sense when using mySQL.
41            I use a value of 2.
42
43
44 That's it. phpwiki should now work.
45
46 If you run into problems then check that your mySQL-user has
47 the necessary access rights for the phpwiki tables.
48
49
50 /Arno
51 ahollosi@iname.com
52
53 Last modified: 2000-04-15