<
From version < 43.1 >
edited by Ahmet Taşdöven
on 2018/07/09
To version < 43.3 >
edited by Vincent Massol
on 2018/07/10
>
Change comment: Put back style removed by previous author...

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ahmettsdvn
1 +XWiki.VincentMassol
Content
... ... @@ -44,13 +44,13 @@
44 44  mysql -u root -e "grant all privileges on workspacetemplate.* to xwiki@localhost identified by 'xwiki'"
45 45  {{/code}}
46 46  
47 -* Please make sure that the DNS-name "localhost" is defined in your hosts-file (i.e. /etc/hosts)
47 +* Please make sure that the DNS-name "localhost" is defined in your hosts-file (i.e. ##/etc/hosts##)
48 48  * You need to have the MySQL JDBC Driver JAR (named ##mysql-connector-java*.jar##) installed in XWiki's WAR file. If this file isn't present in XWiki's ##WEB-INF/lib## directory you'll need to download it and copy it there. You can download it from the [[MySQL Connector/J Driver page>>http://www.mysql.com/products/connector/j/]] or directly from the [[Maven Central Repository>>http://repo1.maven.org/maven2/mysql/mysql-connector-java/]].(((
49 49  {{warning}}
50 50  You need the 5.x version or higher. The 3.x version doesn't handle Boolean data correctly and will either throw errors, or will make all documents hidden by default.
51 51  {{/warning}}
52 52  )))
53 -* Now you need to tell XWiki to use MySQL. To do this, edit the ##WEB-INF/hibernate.cfg.xml## file where you have expanded the XWiki WAR file and replace the matching properties with the following ones:(((
53 +* Now you need to tell XWiki to use MySQL. To do this, edit the ##WEB-INF/hibernate.cfg.xml## file where you have expanded the XWiki WAR file and replace the matching properties with the following ones (you can also comment out the HSQLDB part and uncomment the MySQL one):(((
54 54  {{code language="xml"}}
55 55  <property name="connection.url">jdbc:mysql://localhost/xwiki</property>
56 56  <property name="connection.username">xwiki</property>

Get Connected