R
R
Ruslan2022-02-03 13:47:22
MySQL
Ruslan, 2022-02-03 13:47:22

How to install mysql on Debian 10 VPS for python?

I took a virtual VPS server to run a telegram bot on it. Everything I needed was installed via SSH. But I'm trying to install the mysql database, since it is used in my bot, it gives errors. I write commands for installation:

apt-get update
apt-get install -y mysql-server mysql-client

Errors are given:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-client is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mysql-server' has no installation candidate
E: Package 'mysql-client' has no installation candidate

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
latush, 2022-02-03
@latush

apt install mariadb-server

D
Drno, 2022-02-03
@Drno

it is not in the debian repository
add the required version to soures list
https://losst.ru/ustanovka-mysql-v-debian-10
https://www.digitalocean.com/community/tutorials/h...

R
Ruslan, 2022-02-04
@kuchuluk

In general, if it is useful to anyone, I completely installed lamp (apache2, sql, phpmyadmin). Thus earned

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question