<
From version < 12.1 >
edited by Sergiu Dumitriu
on 2011/03/21
To version < 12.4 >
edited by Sorin Burjan
on 2011/04/04
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Sergiu
1 +XWiki.Sorin
Content
... ... @@ -1,11 +1,19 @@
1 -{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
1 +{{box cssClass="floatinginfobox" title="**Contents**"}}
2 +{{toc/}}
3 +{{/box}}
2 2  
3 3  = Compatibility Considerations =
6 +
4 4  == MyISAM storage engine ==
5 -MyISAM (the default storage engine for MySQL) does not support transactions. If there is an error while data is being saved to the database, XWiki will attempt to rollback the transaction to it's previous known good state. If you use MyISAM it will do nothing, leaving the database in whatever state it was in when the error occurred.
6 -**If you use MySQL with default engine MyISAM, you will most likely corrupt your database.** We highly recommend using a storage engine such as InnoDB which supports transactions.
7 7  
9 +MyISAM (the default storage engine for MySQL) does not support transactions. If there is an error while data is being saved to the database, XWiki will attempt to rollback the transaction to it's previous known good state. If you use MyISAM it will do nothing, leaving the database in whatever state it was in when the error occurred.
10 +
11 +{{warning}}
12 +If you use MySQL with default engine MyISAM, you will most likely corrupt your database.** We highly recommend using a storage engine such as InnoDB which supports transactions.
13 +{{/warning}}
14 +
8 8  == MySQL versions older than 5.0 ==
16 +
9 9  XWiki does not fully work with MySQL versions 4.x or lower, due to several limitations of the way the SQL standards are implemented in MySQL, limited support for non-latin1 encodings, the flaky integration of Hibernate and MySQL 4, and other things. Most of the application works fine, but there are some parts that cannot easily be fixed, so if you must use MySQL 4.x, you're doing it on your own. Seriously, MySQL 4 is pretty old and buggy, you should consider upgrading.
10 10  
11 11  = Installation Steps =
... ... @@ -30,7 +30,9 @@
30 30  )))
31 31  * Please make sure that the DNS-name "localhost" is defined in your hosts-file (i.e. /etc/hosts)
32 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}}
41 +{{warning}}
42 +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.
43 +{{/warning}}
34 34  )))
35 35  * 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:(((
36 36  {{code language="xml"}}
... ... @@ -42,16 +42,37 @@
42 42  {{/code}}
43 43  )))
44 44  
45 -{{info}}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]]. For example to increase the packet size to 32M you could start the MySQL server with:(((
55 +{{info}}
56 +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]]. For example to increase the packet size to 32M you could start the MySQL server with:(((
46 46  {{code language="none"}}
47 47  mysqld --console --max_allowed_packet=32M
48 48  {{/code}}
49 -))){{/info}}
60 +)))
61 +{{/info}}
50 50  
51 -{{warning}}XWiki does not create automatically the Database Indexes. You can use the [[Admin Tools Application>>extensions:Extension.AdminTools]] for that or [[create them manually>>AdminGuide.Database Administration]]{{/warning}}
63 +{{warning}}
64 +XWiki does not create automatically the Database Indexes. You can use the [[Admin Tools Application>>extensions:Extension.AdminTools]] for that or [[create them manually>>AdminGuide.Database Administration]]
65 +{{/warning}}
52 52  
53 53  = Troubleshooting =
54 54  
69 +== Unable to create the database ==
70 +
71 +When running
72 +
73 +{{code language="none"}}
74 +mysql -u root -e "create database xwiki default character set utf8
75 +{{/code}}
76 +
77 +you may get a
78 +
79 +{{code language="none"}}
80 +ERROR 1045 (28000): Access denied for user 'xwiki'@'localhost' (using password: YES)
81 +
82 +{{/code}}
83 +
84 +This means that you have a password set for the MySQL root user but you are not specifying it in the console command. You must enter the //-p// parameter.
85 +
55 55  == Can't create test file ==
56 56  
57 57  When running ##mysqld ~-~-console## you may get the following (especially if you're on Mac):

Get Connected