<commit_before>.. highlightlang:: none

CentOS
======

This section describes how to install Mroonga related RPM packages on
CentOS. You can install them by ``yum``.

.. include:: 32bit-note.inc

CentOS 5
--------

You use CentOS's MySQL packages (version 5.5.x) on CentOS 5 since
Mroonga 3.09 release.

Install::

  % sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mysql55-mysql-server
  % sudo /sbin/service mysql55-mysqld start
  % sudo yum install -y mysql55-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 6 (with the official MySQL package)
------------------------------------------

You can use CentOS's SCL MySQL packages (version 5.5.x) on CentOS 6
since Mroonga 4.01 release.

Install::

  % sudo yum install -y centos-release-SCL
  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mysql55-mysql-server
  % sudo /sbin/service mysql55-mysqld start
  % sudo yum install -y mysql55-mroonga
  (% sudo scl enable mysql55 "mysqladmin -u root password '<PASSWORD>'")

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 6 (with the Oracle MySQL package)
----------------------------------------

You can use Oracle's MySQL packages (version 5.6.x) on CentOS 6
since Mroonga 4.04 release.

Install::

  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum install -y http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mysql-community-server
  % sudo /sbin/service mysqld start
  % sudo yum install -y mysql-community-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 7 (with the official MariaDB package)
--------------------------------------------

You can use CentOS's MariaDB packages (version 5.5.x) on CentOS 7.

Install::

  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mariadb-server
  % sudo systemctl start mariadb
  % sudo yum install -y mariadb-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 7 (with the Oracle MySQL package)
----------------------------------------

You can use Oracle's MySQL packages (version 5.6.x) on CentOS 7.

Install::

  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum install -y http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mysql-community-server
  % sudo systemctl start mysqld
  % sudo yum install -y mysql-community-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab
<commit_msg>doc: add install document for CentOS 6/7 + Percona Server<commit_after>.. highlightlang:: none

CentOS
======

This section describes how to install Mroonga related RPM packages on
CentOS. You can install them by ``yum``.

.. include:: 32bit-note.inc

CentOS 5
--------

You use CentOS's MySQL packages (version 5.5.x) on CentOS 5 since
Mroonga 3.09 release.

Install::

  % sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mysql55-mysql-server
  % sudo /sbin/service mysql55-mysqld start
  % sudo yum install -y mysql55-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 6 (with the official MySQL package)
------------------------------------------

You can use CentOS's SCL MySQL packages (version 5.5.x) on CentOS 6
since Mroonga 4.01 release.

Install::

  % sudo yum install -y centos-release-SCL
  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mysql55-mysql-server
  % sudo /sbin/service mysql55-mysqld start
  % sudo yum install -y mysql55-mroonga
  (% sudo scl enable mysql55 "mysqladmin -u root password '<PASSWORD>'")

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 6 (with the Oracle MySQL package)
----------------------------------------

You can use Oracle's MySQL packages (version 5.6.x) on CentOS 6
since Mroonga 4.04 release.

Install::

  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum install -y http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mysql-community-server
  % sudo /sbin/service mysqld start
  % sudo yum install -y mysql-community-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 6 (with Percona Server package)
--------------------------------------

You can use Percona Server packages (version 5.6.x) on CentOS 6
since Mroonga 5.01 release.

Install::

  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  $ sudo yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y Percona-Server-server-56
  % sudo /sbin/service mysqld start
  % sudo yum install -y percona-server-56-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 7 (with the official MariaDB package)
--------------------------------------------

You can use CentOS's MariaDB packages (version 5.5.x) on CentOS 7.

Install::

  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mariadb-server
  % sudo systemctl start mariadb
  % sudo yum install -y mariadb-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 7 (with the Oracle MySQL package)
----------------------------------------

You can use Oracle's MySQL packages (version 5.6.x) on CentOS 7.

Install::

  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  % sudo yum install -y http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y mysql-community-server
  % sudo systemctl start mysqld
  % sudo yum install -y mysql-community-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

CentOS 7 (with Percona Server package)
--------------------------------------

You can use Percona Server packages (version 5.6.x) on CentOS 7
since Mroonga 5.01 release.

Install::

  % sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
  $ sudo yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm
  % sudo yum makecache
  % sudo yum install -y Percona-Server-server-56
  % sudo /sbin/service mysqld start
  % sudo yum install -y percona-server-56-mroonga
  (% sudo mysqladmin -u root password '<PASSWORD>')

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package::

  % sudo yum install -y groonga-tokenizer-mecab

{'fraction_non_alphanumeric': 0.15063618718999353, 'fraction_numerical': 0.019624757386241105, 'mean_word_length': 2.996122361051271, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '943809', 'n_tokens_mistral': 3473, 'n_tokens_neox': 3211, 'n_words': 936}