1

When I install the MySQL it installs Maria's packages on the new Debian GNU/Linux 9 (stretch), any suggestions?

apt-get install mysql-server
Bira
  • 4,531
  • 2
  • 27
  • 42

1 Answers1

8

Debian Stretch (9.0) no longer includes MySQL . Some information on what's happening in the background when you try to install mysql-server is available here.

MariaDB is designed to be a fully compatible drop in replacement for MySQL but if you really want MySQL you should add the MySQL APT repository to your system as described here. After adding the repository do an apt update and then proceed to install the mysql-server package.

Sam Hartman
  • 6,210
  • 3
  • 23
  • 40
Ben Franske
  • 330
  • 2
  • 11
  • If the answer solves your question please accept the answer so that the question stops showing up in the lists of questions people are seeking answers to. Thanks! – Ben Franske Sep 26 '17 at 03:37
  • 1
    Hi. The official Debian repository for unstable/sid still includes mysql-server-5.7, which led to my mistaken answer. As best I can tell it simply got pulled from stretch and the long-term intent is to support both implementations, so I updated the text of the question to match the facts – Sam Hartman Sep 30 '17 at 19:24