Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

mariadb를 이용한 설치 중 오류 발생시 해결방법 #5

@JRevirthuum

Description

@JRevirthuum

MariaDB에 Mroonga 플러그인이 설치되어있지 않으면 WITH PARSER ngram 에서 오류가 납니다.
MariaDB에 Mroonga 플러그인을 설치하기 어려우시면,
classes/DB/mysql.class.php 의 create 함수에서 인덱스 타입이 fulltext일때, 예외처리 해주세요.

} elseif ($index == 'fulltext') {
    if (version_compare($this->version,'5.7.6','>=') == true && 0) { // && 0 을 추가하여 예외처리
	$this->rawQuery('ALTER TABLE `'.($included_prefix == true ? '' : $this->_prefix).$table.'` ADD FULLTEXT('.$column.') WITH PARSER ngram');
    } else {
	$this->rawQuery('ALTER TABLE `'.($included_prefix == true ? '' : $this->_prefix).$table.'` ADD FULLTEXT('.$column.')');
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions