<
From version < 11.1 >
edited by Ludovic Dubost
on 2011/03/02
To version < 12.1 >
edited by Sergiu Dumitriu
on 2011/03/21
>
Change comment: Warn about version 3.x of the connector

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.LudovicDubost
1 +XWiki.Sergiu
Content
... ... @@ -29,7 +29,9 @@
29 29  {{/code}}
30 30  )))
31 31  * Please make sure that the DNS-name "localhost" is defined in your hosts-file (i.e. /etc/hosts)
32 -* 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/]].
32 +* 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/]].(((
33 +{{warning}}You need version 5.x or higher, version 3.x doesn't handle Boolean data correctly and will either throw errors, or will make all documents hidden by default.{{/warning}}
34 +)))
33 33  * 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:(((
34 34  {{code language="xml"}}
35 35  <property name="connection.url">jdbc:mysql://localhost/xwiki</property>
... ... @@ -63,7 +63,7 @@
63 63  
64 64  To start MySQL run the following instead:
65 65  
66 -{{code}}
68 +{{code language="none"}}
67 67  sudo /usr/local/mysql/bin/mysqld_safe --user=mysql
68 68  {{/code}}
69 69  

Get Connected