atlassian_confluence_jira

MySQL 5.1.71 is not supported. You should migrate to a supported database version.

Naan 2017. 6. 13. 21:41
반응형

MySQL 5.1.71 is not supported. You should migrate to a supported database version.


jira 사용하다 보면 위와 같이 에러가 발생할수 있다.

mysql upgrade 하도록 하자 자신의 버전에 맞춰서 지원 하는 mysql 를 확인후 업데이트 하자.

나는 7.2 버전이니깐 mysql 5.5 or 5.6 지원이다.


5.6 설치 하자.


mysql 버전 확인

# mysql --version

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

#

우선 mysql 삭제

# service mysqld stop

# yum remove mysql mysql-server


저장소 등록

# wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

# rpm -ivh mysql-community-release-el6-5.noarch.rpm


설치

# yum install mysql-server

설치버전 확인

# mysql --version

mysql  Ver 14.14 Distrib 5.6.36, for Linux (x86_64) using  EditLine wrapper

[root@jira_clone tmp]#


업그레이드 작업

# mysql_upgrade -u root -p

Looking for 'mysql' as: mysql

Looking for 'mysqlcheck' as: mysqlcheck

Error: Failed while fetching Server version! Could be due to unauthorized access.

FATAL ERROR: Upgrade failed


만약 위와 같이 에러가 뜬다면
환경설정 파일 복사
# mv /etc/my.cnf /tmp

# mysql_upgrade -u root -p
Enter password:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck with default connection arguments
Warning: Using a password on the command line interface can be insecure.
mysql.columns_priv                                 OK
mysql.db                                           OK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

jiradb.votehistory                                 OK
jiradb.workflowscheme                              OK
jiradb.workflowschemeentity                        OK
jiradb.worklog                                     OK
OK

업그레이드 완료

jira 재구동 하면 된다.

혹시 접속에 문제가 있다면.. 접속하는 계정에 문제가 있다면.

UPDATE mysql.user SET Password=PASSWORD('암호') WHERE User='아이디' AND Host='localhost';

FLUSH PRIVILEGES;

암호 변경하고 접속 해보자.


또혹시..

mysql> show variables like 'have_innodb';

+---------------+-------+

| Variable_name | Value |

+---------------+-------+

| have_innodb   | NO   |

+---------------+-------+

1 row in set (0.00 sec)

NO로 되어 있을수 있다.

YES 로 변경하려면

# service mysql stop

# rm -Rf /var/lib/mysql/ib_logfile*

# service mysql start




반응형