programing

MariaDB: Arch Linux에서 OQGRAPH를 DB Engine으로 설치하는 방법

telecom 2023. 9. 12. 19:50
반응형

MariaDB: Arch Linux에서 OQGRAPH를 DB Engine으로 설치하는 방법

Arch Linux에서 MariaDB용 OQGRAPH 설치가 가능합니까?만약 그렇다면, 어떻게?

현재 설치된 엔진은 다음과 같습니다.

MariaDB [(none)]> show engines;
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
| Engine             | Support | Comment                                                                                          | Transactions | XA   | Savepoints |
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
| MEMORY             | YES     | Hash based, stored in memory, useful for temporary tables                                        | NO           | NO   | NO         |
| MRG_MyISAM         | YES     | Collection of identical MyISAM tables                                                            | NO           | NO   | NO         |
| CSV                | YES     | Stores tables as CSV files                                                                       | NO           | NO   | NO         |
| BLACKHOLE          | YES     | /dev/null storage engine (anything you write to it disappears)                                   | NO           | NO   | NO         |
| MyISAM             | YES     | Non-transactional engine with good performance and small data footprint                          | NO           | NO   | NO         |
| ARCHIVE            | YES     | gzip-compresses tables for a low storage footprint                                               | NO           | NO   | NO         |
| Aria               | YES     | Crash-safe tables with MyISAM heritage                                                           | NO           | NO   | NO         |
| InnoDB             | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, foreign keys and encryption for tables | YES          | YES  | YES        |
| PERFORMANCE_SCHEMA | YES     | Performance Schema                                                                               | NO           | NO   | NO         |
| SEQUENCE           | YES     | Generated tables filled with sequential values                                                   | YES          | NO   | YES        |
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
10 rows in set (0.00 sec)

ocgraph를 설치하기 위해 찾은 지침에 따라 결과는 다음과 같습니다.

MariaDB [(none)]> install plugin oqgraph soname 'ha_oqgraph.so';

ERROR 1126 (HY000): Can't open shared library '/usr/lib/mysql/plugin/ha_oqgraph.so' (errno: 2, cannot open shared object file: No such file or directory)

해당 파일이 없습니다.

ls /usr/lib/mysql/plugin/ha_oqgraph.so
ls: cannot access '/usr/lib/mysql/plugin/ha_oqgraph.so': No such file or directory

이 두 가지 모두 결과를 반환하지 않습니다.

pacman -Ss oqgraph
pacman -Ss "open query graph"

관련 페이지:

OQGraph는 Arch Wiki 페이지에 언급되어 있지 않습니다.
https://wiki.archlinux.org/index.php/MySQL

내 MariaDB에 OQGraph가 없습니까?
수용된 해결책은 제게 맞지 않습니다.

https://mariadb.com/kb/en/library/installing-oqgraph/
이 페이지는 Arch Linux 솔루션을 제공하지 않습니다.

이것은 이상적인 해결책이 아닌 해결책입니다.하지만 효과는 있습니다.

다운로드한 라이브러리 버전과 설치한 MariaDB 버전을 일치시킵니다.

다운로드.libJudy.so.1. 나는 Arch repo에서 libJudy를 찾지 못했습니다.업데이트: Kevin Andrews(댓글 참조):

libJudy는 현재 커뮤니티 레포에 있으므로 sudo pacman-S 커뮤니티/judy로 충분합니다.

누구에게나 도움이 될 경우를 대비해 나의 오래된 발걸음을 떠나는 것.그렇지 않으면 아래의 [다음]으로 이동합니다.

이전저는 http://ftp.br.debian.org/debian/pool/main/j/judy/libjudydebian1_1.0.5-5_amd64.deb 을 이용했습니다.그런 다음 다음 다음 단계에 따라 lib을 설치합니다.

extract libJudy.so.1.0.3
cd /lib
sudo mv libJudy.so.1.0.3 .
sudo ln -s libJudy.so.1.0.3 libJudy.so.1
sudo chmod 644 libJudy.so.1.0.3

다음은 당신이 필요합니다.ha_oqgraph.so. 저는 Arch repo에서 설치된 MariaDB 버전과 일치하는 파일을 얻기 위해 MariaDB의 전체 공식 tarball을 다운로드했습니다.

extract ha_oqgraph.so
sudo mv ha_oqgraph.so /usr/lib/mysql/plugin/ha_oqgraph.so
sudo chmod 755 /usr/lib/mysql/plugin/ha_oqgraph.so

루트로 MariaDB에 로그인하고 다음을 실행합니다.

MariaDB > install plugin oqgraph soname 'ha_oqgraph.so';
Query OK, 0 rows affected (0.00 sec)

그런 다음 이를 실행하여 OQGRAPH가 설치되었는지 확인합니다.

MariaDB > show engines;

결과는 이렇습니다.

+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
| Engine             | Support | Comment                                                                                          | Transactions | XA   | Savepoints |
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
| MEMORY             | YES     | Hash based, stored in memory, useful for temporary tables                                        | NO           | NO   | NO         |
| MRG_MyISAM         | YES     | Collection of identical MyISAM tables                                                            | NO           | NO   | NO         |
| CSV                | YES     | Stores tables as CSV files                                                                       | NO           | NO   | NO         |
| BLACKHOLE          | YES     | /dev/null storage engine (anything you write to it disappears)                                   | NO           | NO   | NO         |
| MyISAM             | YES     | Non-transactional engine with good performance and small data footprint                          | NO           | NO   | NO         |
| ARCHIVE            | YES     | gzip-compresses tables for a low storage footprint                                               | NO           | NO   | NO         |
| Aria               | YES     | Crash-safe tables with MyISAM heritage                                                           | NO           | NO   | NO         |
| InnoDB             | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, foreign keys and encryption for tables | YES          | YES  | YES        |
| PERFORMANCE_SCHEMA | YES     | Performance Schema                                                                               | NO           | NO   | NO         |
| OQGRAPH            | YES     | Open Query Graph Computation Engine (http://openquery.com/graph)                                 | NO           | NO   | NO         |
| SEQUENCE           | YES     | Generated tables filled with sequential values                                                   | YES          | NO   | YES        |
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
11 rows in set (0.02 sec)

언급URL : https://stackoverflow.com/questions/53789095/mariadb-how-to-install-oqgraph-as-db-engine-on-arch-linux

반응형