Navigation Menu

Skip to content

Commit

Permalink
doc: add upgrade sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Jul 26, 2012
1 parent 08e9e43 commit ea4a6a9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions doc/source/news.rst
Expand Up @@ -16,6 +16,45 @@ Release 2.05 - 2012/07/29
in :doc:`/userguide/storage`, please recreate (dump and restore)
database.

Here are upgrade sequence.

We dump a database that uses mroonga::

% mysqldump MY_MROONGA_DATABASE > database-mroonga.dump

We drop the existing database::

% mysql -u root -e 'DROP DATABASE MY_MROONGA_DATABASE'

We upgrade to "mroonga" storage engine. We will use
``apt-get`` on Debian GNU/Linux or Ubuntu and ``yum`` on
CentOS or Fedora.

apt-get::

% sudo apt-get install -y mysql-server-mroonga

yum::

% sudo yum remove -y mysql-mroonga
% sudo yum install -y mysql-mroonga

.. caution::

We don't forget to run ``yum remove`` before ``yum
install``. If we forget to run ``yum remove``, we will break
a MySQL's system table.

We recreate a database::

% mysql -u root -e 'CREATE DATABASE MY_MROONGA_DATABASE'

We restore a database by modified dump file::

% mysql -u root MY_MROONGA_DATABASE < database-mroonga.dump

Now, we can use mroonga 2.05.

Improvements
^^^^^^^^^^^^

Expand Down

0 comments on commit ea4a6a9

Please sign in to comment.