Last active
September 5, 2024 04:23
-
-
Save Ichinya/6e4f588f2a717d377e497ba736dd5f2f to your computer and use it in GitHub Desktop.
Установка mysql на новый сервер под Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Добавить пользователя в sudo, для перехода под рут | |
su root | |
# install sudo | |
apt-get install sudo -y | |
# add user "ichi" | |
sudo adduser ichi | |
# добавить в группу судо | |
sudo usermod -aG sudo <username> | |
# перезайти | |
sudo apt update | |
sudo apt install gnupg | |
# скачивает конфиг репозитория | |
wget https://dev.mysql.com/get/mysql-apt-config_0.8.26-1_all.deb | |
sudo dpkg -i mysql-apt-config* | |
sudo apt update | |
sudo apt install mysql-server -y | |
# Если ошибка mysql-community-client : Depends: libssl1.1 (>= 1.1.1) but it is not installable | |
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb | |
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb | |
sudo apt install mysql-server -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment