Stretch installs everything except MySQL

Help with issues regarding installation of Debian

Stretch installs everything except MySQL

Postby hatchmo » 2017-07-23 18:02

Our upgrade from Jessie to Stretch installs everything except MySQL (MariaDB). This returns nothing:
Code: Select all
locate mariadb

Any mysql command returns this:
Code: Select all
mysql
bash: mysql: command not found


This fails with a dependencies error:
Code: Select all
sudo apt-get install php7.0-mysql
The following packages have unmet dependencies: libapache2-mod-php7.0 :
Depends: apache2-api-20120211
Depends: apache2-bin (>= 2.4.16) but it is not installed


The problem is not solved by
Code: Select all
apt-get -f install


Here’s a puzzler: The sources.list is identical to the one on our other server, which upgraded to Stretch just fine.
The same error also stops
Code: Select all
apt-get install apache2

I just need a suggestion where to go next. Thanks.
hatchmo
 
Posts: 4
Joined: 2017-07-23 17:51

Re: Stretch installs everything except MySQL

Postby bigrigdriver » 2017-07-25 12:52

Code: Select all
locate mariadb

Did you run updatedb to build the locate database before running the locate command?

This is from the Debian 9 changelog:
2.2.3. MariaDB replaces MySQL

MariaDB is now the default MySQL variant in Debian, at version 10.1. The stretch release introduces a new mechanism for switching the default variant, using metapackages created from the mysql-defaults source package. For example, installing the metapackage default-mysql-server will install mariadb-server-10.1. Users who had mysql-server-5.5 or mysql-server-5.6 will have it removed and replaced by the MariaDB equivalent. Similarly, installing default-mysql-client will install mariadb-client-10.1.
[Important] Important

Note that the database binary data file formats are not backwards compatible, so once you have upgraded to MariaDB 10.1 you will not be able to switch back to any previous version of MariaDB or MySQL unless you have a proper database dump. Therefore, before upgrading, please make backups of all important databases with an appropriate tool such as mysqldump.

The virtual-mysql-* and default-mysql-* packages will continue to exist. MySQL continues to be maintained in Debian, in the unstable release. See the Debian MySQL Team wiki page for current information about the mysql-related software available in Debian.
Registered GNU/Linux user #170078

Go as google before you ask on these boards.

It it isn't broken, Tweak It !!!
bigrigdriver
 
Posts: 134
Joined: 2014-09-01 17:04
Location: East Central Illinois, USA

Re: Stretch installs everything except MySQL

Postby hatchmo » 2017-07-28 02:36

Yes, I did. I am just unable to install MySQL.
hatchmo
 
Posts: 4
Joined: 2017-07-23 17:51

Re: Stretch installs everything except MySQL

Postby Bulkley » 2017-07-28 02:47

hatchmo wrote:The sources.list is identical to the one on our other server . . .


Which is ?
Bulkley
 
Posts: 5365
Joined: 2006-02-11 18:35


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable