Changes for page MySQL Installation

Last modified by Thomas Mortagne on 2023/04/19

From version 1.1 >
edited by vmassol
on 2006/12/11
To version < 1.2 >
edited by vmassol
on 2006/12/11
>
Change comment: There is no comment for this version

Summary

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 +

Get Connected