نشانیها
- مخزن MySQL
https://mirror-mysql.pkg.shecan.ir/
Ubuntu و Debian (MySQL 8.4 LTS)
برای نسخهٔ دیگر، mysql-8.4-lts را به mysql-8.0 یا mysql-innovation تغییر دهید.
Shell
sudo install -d /etc/apt/keyrings
sudo curl -fsSLo /etc/apt/keyrings/mysql.asc https://mirror-mysql.pkg.shecan.ir/RPM-GPG-KEY-mysql-2025
. /etc/os-release
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/mysql.asc] https://mirror-mysql.pkg.shecan.ir/apt/$ID $VERSION_CODENAME mysql-8.4-lts mysql-tools" | sudo tee /etc/apt/sources.list.d/mysql.list
sudo apt update && sudo apt install -y mysql-serverShell
sudo rm -f /etc/apt/sources.list.d/mysql.list /etc/apt/keyrings/mysql.asc
sudo apt updateAlmaLinux، Rocky و RHEL 9 و 10
/etc/yum.repos.d/mysql-community.repo/etc/yum.repos.d/mysql-community.repoINI
[mysql-8.4-lts-community]
name=MySQL 8.4 LTS Community Server
baseurl=https://mirror-mysql.pkg.shecan.ir/yum/mysql-8.4-community/el/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirror-mysql.pkg.shecan.ir/RPM-GPG-KEY-mysql-2025
[mysql-tools-8.4-lts-community]
name=MySQL Tools 8.4 LTS Community
baseurl=https://mirror-mysql.pkg.shecan.ir/yum/mysql-tools-8.4-community/el/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirror-mysql.pkg.shecan.ir/RPM-GPG-KEY-mysql-2025Shell
sudo rm -f /etc/yum.repos.d/mysql-community.repo
sudo dnf clean allShell
sudo dnf install -y mysql-community-serverنکتهها و محدودیتها
- apt و dnf امضای رسمی MySQL را بررسی میکنند. از فایل کلید
RPM-GPG-KEY-mysql-2025استفاده کنید؛ فایل ۲۰۲۳ همان کلید با تاریخ انقضای گذشته است. - مخزن apt فقط بستهٔ amd64 دارد.
- بستههای
mysql-apt-configوmysql84-community-releaseارائه نمیشوند، چون سیستم را به repo.mysql.com وصل میکنند؛ از دستورهای همین صفحه استفاده کنید.