Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,26 @@ 1 1 1 MySQL Installation 2 2 3 -TODO 3 +* Download and install [MySQL>http://www.mysql.com/] 4 +* Start the MySQL server. You can do that in several ways. For example: 5 +{code} 6 +mysqld --console 7 +{code} 8 +* Create the wiki database. You can do that in several ways. For example: 9 +{code} 10 +mysql -u root -e "create database xwiki" 11 +{code} 12 +* 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): 13 +{code} 14 +mysql -u root -e "grant all privileges on xwiki.* to xwiki@127.0.0.1 identified by 'xwiki'" 15 +{code} 16 +* 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: 17 +{code} 18 +<property name="connection.url">jdbc:mysql://localhost/xwiki;shutdown=true</property> 19 +<property name="connection.username">xwiki</property> 20 +<property name="connection.password">xwiki</property> 21 +<property name="connection.driver_class">com.mysql.jdbc.Driver</property> 22 +<property name="dialect">org.hibernate.dialect.MySQLDialect</property> 23 +{code} 24 + 25 + 26 +