نصب MySQL Community روی AlmaLinux / Rocky / RHEL 8
MySQL Community نسخهٔ 8.4.11 را روی AlmaLinux / Rocky / RHEL 8 از مخزن داخلی dacker نصب کنید؛ بدون خطای ۴۰۳ و با سرعت داخلی.
دستور زیر کامل است: کلید امضا، مخزن، نصب، راهاندازی و بررسی.
نسخه: 8.4.11
حجم مخزن: 76.4 MB
مدیر بسته: dnf
آخرین تغییر:
مجوز: GPL-2.0
دستور نصب MySQL Community روی AlmaLinux / Rocky / RHEL 8
MySQL Community 8.48.4.11
AlmaLinux / Rocky / RHEL 8
76.4 MB
امضا و بررسیشده
bash · EL 8
۱کلید امضای سازنده
# 1) Import the vendor signing keysudo rpm --import https://repo.dacker.ir/el/keys/mysql.asc
۲افزودن مخزن
# 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/el/repos/dacker-mysql-8.4.repo -o /etc/yum.repos.d/dacker-mysql-8.4.repo
# 4) Enable and start the servicesudo systemctl enable --now mysqld
۵بررسی نصب
# 5) Check the installationmysql --version
نسخهٔ بستههای MySQL Community روی AlmaLinux / Rocky / RHEL 8
همهٔ بستههای مخزن mysql-8.4 برای این توزیع، مستقیم از manifest مخزن. نام بستهها را برای dnf install میتوانید استفاده کنید.
بسته
نسخه
mysql-community-server
8.4.11-1.el8
mysql-community-client
8.4.11-1.el8
وابستگیهایی که همراهشان از همین مخزن نصب میشوند: mysql-community-client-plugins، mysql-community-common، mysql-community-icu-data-files، mysql-community-libs
پیش از نصب روی AlmaLinux / Rocky / RHEL 8
روی EL 8 اگر dnf بسته را «filtered out by modular filtering» گزارش کرد، این پرسش را ببینید.
خطاهای رایج نصب MySQL Community روی AlmaLinux / Rocky / RHEL 8
«Unable to find a match: mysql-community-server»
output
No match for argument: mysql-community-serverError: Unable to find a match: mysql-community-server
فایل مخزن (مرحلهٔ ۲) در /etc/yum.repos.d/ نیست، یا نسخهٔ EL سرور با این صفحه یکی نیست. با دستورهای زیر بررسی کنید.
bash · EL 8
dnf repolistcat /etc/os-release
«GPG check FAILED» یا «Public key … is not installed»
output
Public key for mysql-community-server-….rpm is not installedError: GPG check FAILED
کلید امضای سازنده وارد نشده است. مرحلهٔ ۱ (rpm --import) را اجرا کنید و نصب را تکرار کنید. غیرفعال کردن gpgcheck راهحل امن نیست.
All matches were filtered out by modular filtering for argument: …Error: Unable to find a match: …
EL 8 برای این نرمافزار ماژول AppStream دارد و dnf بستهٔ همنام مخزنهای دیگر را کنار میگذارد. فایل .repo مخزن dacker گزینهٔ module_hotfixes=1 را دارد که معمولاً کافی است؛ اگر نبود، ماژول توزیع را غیرفعال کنید. نام ماژول را از خروجی dnf module list بردارید.