728x90
문제
mysqld 명령 실행 시 아래와 같은 에러 발생
mysqld: Can't open shared library '/engn001/mysql-commercial-8.0.36-linux-glibc2.28-x86_64/lib64/mysql/plugin/component_reference_cache.so' (errno: 2 /engn001/mysql-commercial-8.0.36-linux-glibc2.28-x86_64/lib64/mysql/plugin/component_reference_cache.so: cannot open shared obje)
mysqld: Cannot load component from specified URN: 'file://component_reference_cache'.
component_reference_cache.so 라이브러리를 못 찾는다는 내용인데
에러 메세지의 해당 경로는 잘못된 경로를 바라보고 있음
(실제로는 /engn001/mysql-commercial-8.0.36-linux-glibc2.28-x86_64/lib/plugin/component_reference_cache.so 에 있었음)
원인
mysqld 명령을 실행하면 라이브러리를 찾는 디폴트 경로가 있는 것으로 보임
해결방안
my.cnf 파일에 plugin_dir 파라미터를 통해 라이브러리 경로를 수동으로 명시
# vi /etc/my.cnf
[mysqld]
plugin_dir = /engn001/mysql-commercial-8.0.36-linux-glibc2.28-x86_64/lib/plugin
728x90
'📁 Database > MySQL & MariaDB' 카테고리의 다른 글
| [MySQL] mysqld와 mysqld_safe의 차이 (0) | 2024.05.27 |
|---|---|
| [MySQL] root 패스워드를 모를 때 DB 접속 및 패스워드 변경 방법 (0) | 2024.05.23 |
| [MariaDB] Centos 7, MariaDB 10.6 설치 - 인터넷 안되는 환경, 수동설치, rpm 설치 (0) | 2024.03.26 |
| [MariaDB] MariaDB 설치 중 에러 (0) | 2024.03.26 |
| [MySQL] 엔진 아키텍처(MySQL 엔진, 스토리지 엔진, 핸들러, 스레드, 메모리 사용 구조, 쿼리 실행 구조) (0) | 2024.02.23 |