简体   繁体   English

如果我尝试安装 MySQL-Server debian 将安装 mariadb-server-10.1

[英]If i try to install MySQL-Server debian will install mariadb-server-10.1

I need to install MySQL-Server community edition but then i try to install the MySQL-Server it installs mariadb-server-10.1我需要安装 MySQL-Server 社区版,然后我尝试安装 MySQL-Server 它安装了 mariadb-server-10.1


Server logs: https://hastebin.com/erokoboket.php服务器日志: https : //hastebin.com/erokoboket.php

Debian decided to switch from using Oracle's MySQL to using the MariaDB fork as their default installation. Debian 决定从使用 Oracle 的 MySQL 切换到使用 MariaDB fork 作为其默认安装。

MariaDB is good software, and so is MySQL. MariaDB 是好软件,MySQL 也是。 Unfortunately they're diverging a bit in their feature sets.不幸的是,他们的功能集有些不同。

If you decide you want to install Oracle's MySQL, you need to add its repository to your Debian / Ubuntu package manager.如果您决定要安装 Oracle 的 MySQL,您需要将其存储库添加到您的 Debian / Ubuntu 包管理器。

You can download the file to update your package manager from Oracle here.您可以在此处从 Oracle 下载该文件以更新您的包管理器。

https://dev.mysql.com/downloads/repo/apt/ https://dev.mysql.com/downloads/repo/apt/

Then you add it to your package manager and install MySQL.然后将其添加到包管理器并安装 MySQL。

sudo dpkg -i whatevver-package-name.deb
sudo apt-get update
sudo apt-get install mysql-server

Updating the package manager is helpful when it comes time to install updates to MySQL;当需要安装 MySQL 更新时,更新包管理器很有帮助; you can use sudo apt-get update ; sudo apt-get upgrade您可以使用sudo apt-get update ; sudo apt-get upgrade sudo apt-get update ; sudo apt-get upgrade to handle it. sudo apt-get update ; sudo apt-get upgrade来处理它。

There's an explanation on the Oracle web site here. Oracle 网站上有一个解释here。 https://mysqlrelease.com/2017/06/debian-9-and-mysql-watch-out/ https://mysqlrelease.com/2017/06/debian-9-and-mysql-watch-out/

The explanation must have been written by a marketer charged with keeping market share for Oracle MySQL;说明必须由负责保持 Oracle MySQL 市场份额的营销人员撰写; it doesn't even mention MariaDB by name.它甚至没有提到 MariaDB 的名字。 I suppose that kind of attitude is partly the reason the Debian krewe switched.我想这种态度是 Debian krewe 转换的部分原因。

And, after you install your database software, be sure to set your client software (phpmyadmin and others) so it knows the version you are using.并且,在您安装数据库软件之后,一定要设置您的客户端软件(phpmyadmin 和其他),以便它知道您正在使用的版本。

Go to https://dev.mysql.com and down load the .deb file that accesses the MySQL APT repository.转到https://dev.mysql.com并下载访问 MySQL APT 存储库的 .deb 文件。 Then follow the directions to install that file and then download mysql然后按照说明安装该文件,然后下载 mysql

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM