From version 1.1 >
edited by vmassol
on 2006/12/11
To version < 1.3 >
edited by vmassol
on 2006/12/11
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,3 +1,27 @@
1 1  1 MySQL Installation
2 2  
3 -TODO
3 +Steps:
4 +* Download and install [MySQL>http://www.mysql.com/]
5 +* Start the MySQL server. You can do that in several ways. For example:
6 +{code}
7 +mysqld --console
8 +{code}
9 +* Create the wiki database. You can do that in several ways. For example:
10 +{code}
11 +mysql -u root -e "create database xwiki"
12 +{code}
13 +* Give all privileges to the xwiki user for accessing the xwiki database. You can do that in several ways. For example (if you get connections problems try localhost instead of the IP address below):
14 +{code}
15 +mysql -u root -e "grant all privileges on xwiki.* to xwiki@127.0.0.1 identified by 'xwiki'"
16 +{code}
17 +* Tell XWiki to use MySQL. To do this, edit the ~~WEB-INF/hibernate.cfg.xml~~ file where you have expanded the XWiki WAR file. Replace the matching properties with the following ones:
18 +{code}
19 +<property name="connection.url">jdbc:mysql://localhost/xwiki;shutdown=true</property>
20 +<property name="connection.username">xwiki</property>
21 +<property name="connection.password">xwiki</property>
22 +<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
23 +<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
24 +{code}
25 +
26 +Note: By default MySQL only accepts packets smaller than 1MB. If you get the "Packet for query is too large (max_allowed_packet)" error then see the [Packet too large error page>http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html].
27 +

Get Connected