]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - INSTALL.mysql
bringing documentation up to date
[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 -ppassword 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         mysql -uuser -ppassword phpwiki <schemas/schema.mysql
25
26    Note: the user specified in this command needs to have the rights
27          to drop and create tables. Use the same user as in step 1.
28
29    If you are using mySQL 3.21.x or earlier the script may issue an
30    error. In that case remove existing tables manually and delete
31    the "drop tables" lines from schemas/schema.mysql - it should work now
32
33 4. Edit wiki_config.php3 to reflect your settings.
34
35         a) comment out the DBM settings
36         b) uncomment the mySQL settings
37         c) set $mysql_user to "wikiuser" as used in step 2
38         d) set $mysql_pwd to "password" as used in step 2
39         e) set $mysql_db to "phpwiki" as used in step 1
40
41
42 That's it. phpwiki should now work.
43
44 If you run into problems then check that your mySQL-user has
45 the necessary access rights for the phpwiki tables.
46
47
48 /Arno
49 ahollosi@iname.com
50
51 $Id: INSTALL.mysql,v 1.4 2000-09-21 19:44:31 ahollosi Exp $