7

I'm trying to install MySQL; my command is:

sudo apt-get install mysql-server php-mysql -y

and what I'm getting is an error stating

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

Glorfindel
  • 620
  • 1
  • 9
  • 16

1 Answers1

8

mysql has been replaced by mariadb in Debian10.

Try default-mysql-server - although you can use mariadb.

PS You can see what is available on your distribution e.g.

apt-cache search mysql-server
Milliways
  • 62,573
  • 32
  • 113
  • 225