JBoss Community Archive (Read Only)

RHQ 4.10

Design Documentation for MySQL backend

This page should include design documentation for the integration of MySQL as a supported backend.

This can also include User documentation.

Code Change

How to build RHQ

How to install RHQ 

MySQL Version

MySQL Engine

MySQL Installation

  1. Download release of MySQLfrom http://dev.mysql.com/downloads/mysql/#downloads

  2. Install it as described here: http://dev.mysql.com/doc/refman/5.5/en/binary-installation.html

MySQL Preparation

  1. Modify MySQL configuration file /etc/my.cnf

    1. modify max_allowed_packet property in "[mysqld]" section
      max_allowed_packet = 16M # default is 1M

    2. add character_set_server property in "[mysqld]" section (character_set_server is formerly 
      character_set_server = utf8

    3. use case sensitive collation in "[mysqld] section
      collation_server = utf8_bin

    4. add sql_mode property in "[mysqld] section
      sql_mode = NO_AUTO_VALUE_ON_ZERO

  2. Restart MySQL

    1. service mysql restart

  3. Create MySQL database rhq

    1. go to mysql command line

    2. create database rhq;

  4. Create MySQL database user rhqadmin and grant it privileges

    1. CREATE USER 'rhqadmin'

    2. GRANT ALL PRIVILEGES ON *.* TO 'rhqadmin'@'%' IDENTIFIED BY 'rhqadmin' WITH GRANT OPTION;

    3. GRANT ALL PRIVILEGES ON *.* TO 'rhqadmin'@'localhost' IDENTIFIED BY 'rhqadmin' WITH GRANT OPTION;

  5. Restart MySQL

    1. service mysql restart

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 13:44:35 UTC, last content change 2013-04-16 03:00:50 UTC.