Changes for page MySQL Installation
Last modified by Thomas Mortagne on 2022/05/25
Change comment:
Put back style removed by previous author...
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ahmettsdvn1 +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>