openEuler社区版
安装MySQL8版本时:
rpm -qa | grep -i mysql*
没有显示。
因此去openEuler的官方源仓库,找MySQL的包(本机使用虚拟机,因此选了x86),
repo.openeuler.org/openEuler-24.03-LTS/everything/x86_64/Packages/
wget https://repo.openeuler.org/openEuler-24.03-LTS/everything/x86_64/Packages/mysql-server-8.0.35-3.oe2403.x86_64.rpm
查询包依赖关系:
rpm -qpR mysql-server-8.0.35-3.oe2403.x86_64.rpm
依次wget了这几个包:
https://repo.openeuler.org/openEuler-24.03-LTS/everything/x86_64/Packages/mysql-common-8.0.35-3.oe2403.x86_64.rpm
https://repo.openeuler.org/openEuler-24.03-LTS/everything/x86_64/Packages/mysql-errmsg-8.0.35-3.oe2403.x86_64.rpm
https://repo.openeuler.org/openEuler-24.03-LTS/everything/x86_64/Packages/mysql-libs-8.0.35-3.oe2403.x86_64.rpm
https://repo.openeuler.org/openEuler-24.03-LTS/everything/x86_64/Packages/mysql-config-8.0.35-3.oe2403.x86_64.rpm
https://repo.openeuler.org/openEuler-24.03-LTS/everything/x86_64/Packages/mysql-selinux-1.0.10-1.oe2403.noarch.rpm
由config、common、err、lib、selinux依次安装后,
rpm -ivh mysql-server-8.0.35-3.oe2403.x86_64.rpm
在yum中查询不到:
搜索引擎查询后:
因此参考在ubuntu安装c++版本的absl库_absl安装-CSDN博客
编译安装了这个库:
sudo apt-get install cmake g++ git
git clone https://github.com/abseil/abseil-cpp.git
cd abseil-cpp
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make -j
sudo make install
安装结束后:
rpm -ivh mysql-server-8.0.35-3.oe2403.x86_64.rpm
依然报错。
去gpt上看看:
最后一个方法看着顺眼些,就这样先试试:
rpm -e 依次卸载上述已安装的包。
然后用yum -y install mysql-server
它自己找到了依赖:
完成。
参考文章:
【运维案例】openEuler mariaDB替换为mysql - O&M 运维 - openEuler 论坛
在ubuntu安装c++版本的absl库_absl安装-CSDN博客
GitHub - abseil/abseil-cpp: Abseil Common Libraries (C++)
repo.openeuler.org/openEuler-24.03-LTS/everything/x86_64/Packages/