Confluence 3.3 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
This page provides instructions for installing Confluence and the open-source MySQL database on Microsoft Windows, as well as how to set up and configure MySQL to work with Confluence. Additional instructions are also provided for migrating across any existing Confluence database content. Use this guide in conjunction with the more general Database Setup Guide for Any Database. These instructions add some important reference notes specific to MySQL.
We recommend that you use an external database with Confluence for production purposes, as the embedded database does not offer full transactional integrity in the event of sudden power loss. Confluence Standalone with MySQL is well-tested and easily configured for production purposes.
Please note the following points:
- Throughout the instructions below, the
Confluence Installation Directoryrefers to the directory where you extracted the Confluence zipped installer. - The MySQL Database Setup procedure below will make modifications to your default MySQL Server settings. These modifications result in:
- The default collation (localisation) option being changed to
utf8_bin(that is, case-sensitive binary UTF8), such that by default, all new database tables will be created with this type of case-sensitive collation. - The default MySQL database storage engine being changed to 'InnoDB'.
- The default collation (localisation) option being changed to
On this page:
Install Confluence if you have not done so already. Ensure that you download Confluence Standalone, not the evaluation installer. To install MySQL Server, MySQL JDBC Drivers bundled with Confluence * If you're not sure which connection you're using, it's most likely JDBC. A JNDI resource must be configured manually, as described in Configuring a MySQL Datasource in Apache Tomcat. This procedure uses the MySQL Administrator application component of the MySQL GUI Tools package. If MySQL GUI Tools is not already installed or included in your MySQL installation, you will need to download and install this package before proceeding. To create the database and user privileges, 既存のデータベースの場合 既存のデータベースを使用している場合、次のクエリを実行することで、文字エンコードを確認します。
To set up your Confluence MySQL database connection or to switch to using this external database,1. Confluence のインストール
2. MySQL サーバーをインストールする
The installation package can be downloaded from the MySQL download page or from the version 5.0 download page. Instructions for installing the MySQL 5.0 database server on Windows can found on the 'Installing MySQL on Windows' page of the MySQL web site.
If you intend to connect Confluence to an existing, operational MySQL database server instance, we strongly recommend that you reconfigure this database server instance by running through the Config Wizard and initially choosing the Reconfigure Instance option.
It is highly recommended that you only use the InnoDB storage engine with Confluence. Avoid using the MyISAM storage engine as this can lead to data corruption.
If you choose not to install the MySQL Server as a Windows Service, you will need to ensure that the database service has been started before running Confluence.
mysql-connector-java-5.x.y-bin.jar where x.y depends on the driver version) in <confluence install>/WEB-INF/lib (for Confluence 2.10 onwards) or <confluence install>/common/lib (for earlier versions). Information and links to the appropriate database drivers are available on Database JDBC drivers.3. Set up your MySQL Database and User
If you ran through the 'MySQL Server Instance Config Wizard' in step 3 of the Installation and Configuration (above) and did not change your username, you should be able to connect to the MySQL database server using the default Username of 'root', Server Host of 'localhost' (assuming you are running MySQL Administrator on the same machine as the MySQL Server) and Password which you set in the Config Wizard.
If, however, you are running MySQL for the first time and you have not yet run through the Config Wizard, or you do not recall having set your login credentials, you should be able to click OK without a Username and Password.
If you did not run through the 'MySQL Server Instance Config Wizard' in step 3 of the Installation and Configuration (above), click the 'General Parameters' tab and ensure that the Default storage check box has been selected with its value set to InnoDB. Also, click the 'InnoDB Parameters' tab and ensure that the Activate InnoDB check box is selected. If not, implement these settings and click 'Apply changes' before proceeding.
In fact, you can enter any legitimate MySQL username. However, the remaining steps and procedures on this page assume that you have entered the MySQL username of 'confluenceuser' at this point. If you choose a different MySQL username, substitute 'confluenceuser' in the remaining steps and procedures with your chosen MySQL username.
If prompted to enable the global 'Show hosts in user list' option, choose 'Yes'.
To support international languages in Confluence, you should verify the newly created database is using UTF-8 encoding and re-examine the JDBC URL settings (configured in Stage 3).
SHOW VARIABLES LIKE 'character%'; および SHOW VARIABLES LIKE 'collation%';。
結果は、UTF-8 になるはずです。(Optional) 4. Back Up Confluence Data
This stage is only required if you have existing Confluence content you wish to transfer.
To back up your Confluence data,
5. Set Up your Database Connection
Confluence Installation Directory_/confluence/WEB-INF/classes/confluence-init.properties and change the confluence.home property to point to a new directory. e.g. if you had
confluence.home=c:/confluencedata
confluence.home=c:/confluencedata_mysql
Confluence Home Directory. (The name doesn't have to end in _mysql – that's just an example)
confluenceuser in the User Name field, and the password you chose earlier in the Password fieldCould not successfully test your database: : Server connection failure during transaction. Due to underlying exception: 'java.sql.SQLException: Access denied for user 'confluenceuser'@'localhost' (using password: YES)' verify that you have properly given the confluenceuser user all the right permissions when connecting from localhost.トラブルシューティング
WEB-INF/lib folder or possibly have placed it in the wrong folder.
