2 Installing phpwiki with mySQL
3 -----------------------------
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/
9 1. If you do not have a suitable database already, create one.
11 mysqladmin -uuser -ppassword create phpwiki
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
17 GRANT select, insert, update, delete
20 IDENTIFIED BY 'password';
22 3. Create tables inside your database.
24 mysql -uuser -ppassword phpwiki <schemas/schema.mysql
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.
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
33 4. Edit wiki_config.php3 to reflect your settings.
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 f) set MAX_DBM_ATTEMPTS to a low number or to '1'.
41 Retrying has not much sense when using mySQL.
45 That's it. phpwiki should now work.
47 If you run into problems then check that your mySQL-user has
48 the necessary access rights for the phpwiki tables.
54 $Id: INSTALL.mysql,v 1.3 2000-06-21 22:59:18 ahollosi Exp $