본문 바로가기

atlassian_confluence_jira

HSQLDB to MYSQL Migrating

320x100

crucible 사용하다보면 아래쪽에 보면 아래탭에 보면

This FishEye and Crucible instance is using HSQLDB, which is not supported in production environments.

라는 메세지를 보게 된다.


즉 HSQLDB는 더이상 지원하지 않는다라는거다.


mysql 로 변경을 하자


- mysql를 설치


# yum -y install mysql*

# chkconfig mysqld on

# service mysqld start


- my.conf 환경설정

# vi /etc/my.conf

[mysqld]

character-set-server=utf8

collation-server = utf8_general_ci


추가


- db 생성

# mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 2

Server version: 5.1.66 Source distribution


Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


mysql> SET GLOBAL storage_engine = 'InnoDB';

Query OK, 0 rows affected (0.00 sec)


mysql> CREATE DATABASE crucible(DB명) CHARACTER SET utf8 COLLATE utf8_bin;

Query OK, 1 row affected (0.00 sec)


mysql> GRANT ALL PRIVILEGES ON crucible(DB명).* TO 'crucible(DB명)'@'localhost' IDENTIFIED BY 'passwd';

Query OK, 0 rows affected (0.00 sec)


mysql> flush privileges;                                                        Query OK, 0 rows affected (0.00 sec)



utf8로 잘 생성이 됐나 확인해보자

mysql> use crucible;

Database changed

mysql> status;

--------------

mysql  Ver 14.14 Distrib 5.1.66, for redhat-linux-gnu (x86_64) using readline 5.1


Connection id:          4

Current database:       crucible

Current user:           root@localhost

SSL:                    Not in use

Current pager:          stdout

Using outfile:          ''

Using delimiter:        ;

Server version:         5.1.66 Source distribution

Protocol version:       10

Connection:             Localhost via UNIX socket

Server characterset:    latin1

Db     characterset:    utf8

Client characterset:    utf8

Conn.  characterset:    utf8

UNIX socket:            /var/lib/mysql/mysql.sock

Uptime:                 3 min 59 sec


Threads: 1  Questions: 15  Slow queries: 0  Opens: 15  Flush tables: 1  Open tables: 8  Queries per second avg: 0.62

--------------


mysql>


잘 생성이 됐다.


이제 admin 페이지에 들어가자

http://localhost:8060/admin



admin 페이지를 보면 좌측 아래보면 database 항목이 있다.

눌러 보면 기존 hsql 정보가 있는데 edit 를 눌러주자



그리고 방금 mysql db 만든 정보를 입력해주자

test connection 을 누르면 Connection succeeded 가 뜨면 save & migrate 누르면 migrate 가 된다.



여기서 잠깐


Unable to load database driver from your FISHEYE_INST/lib directory. Please check the JDBC driver jar is properly installed


만약 위와 같이 에러가 뜬다면


지금 운영중인 서비스를 중지 한다음


mysql-connector-java-5.1.29-bin.jar

파일을 다운받아서

jar 파일을 crucible_HOME/lib 디렉토리에 복사를 해주자

그리고 권한을 설정한후

서비스를 재시작 하면 에러 없이 succeeded를 볼수 있다.




migrating database 가 정상적으로 마무리가 됐다 ok를 눌러주면 모든 작업이 끝난다.




320x100