]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - INSTALL.mysql
Removed debug output; improved error messages. pages with backslashes
[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 (using
10    the root or other privileged account you set up when mySQL was
11    installed.)
12
13         mysqladmin -uuser -ppassword create phpwiki
14
15 2. If necessary create a user for that database which has the rights
16    to select, insert, update, delete (again using the root
17    administration account).
18
19         mysql -uuser -ppassword phpwiki
20
21    A mySQL grant statement for this user would look like this:
22
23         GRANT select, insert, update, delete
24         ON phpwiki.*
25         TO wikiuser@localhost
26         IDENTIFIED BY 'password';
27
28 3. Create tables inside your database (still using the root account).
29
30         mysql -uuser -ppassword phpwiki <schemas/schema.mysql
31
32    Note: the user specified in this command needs to have the rights
33          to drop and create tables. Use the same user as in step 1.
34
35    If you are using mySQL 3.21.x or earlier the script may issue an
36    error. In that case remove existing tables manually and delete
37    the "drop tables" lines from schemas/schema.mysql - it should work now
38
39 4. Edit lib/config.php to reflect your settings.
40
41         a) comment out the DBM settings
42         b) uncomment the mySQL settings
43         c) set $mysql_user to "wikiuser" as used in step 2
44         d) set $mysql_pwd to "password" as used in step 2
45         e) set $mysql_db to "phpwiki" as used in step 1
46
47
48 That's it. phpwiki should now work.
49
50 If you run into problems then check that your mySQL-user has
51 the necessary access rights for the phpwiki tables.
52
53 Hint for Linux-Debian users: it may be necessary to load the mySQL
54 module first: insert the following line in config.php before
55 "mysql.php" gets included:
56 if (!extension_loaded("mysql"))  { dl("mysql.so"); }
57
58 /Arno
59 ahollosi@mail.com
60
61 $Id: INSTALL.mysql,v 1.6.2.1 2001-11-09 03:13:00 dairiki Exp $