[转]debian9 安装任意版本mysql
Debian 9 - Install MySQL Server
The steps below will show you how to install whichever version of MySQL-server you want on your Debian 9 server and why you should not just run
sudo apt install mysql-server -y
Similar Posts
Steps
Usually, to install MySQL on a distro, you would just perform the following commands:
sudo apt update sudo apt install mysql-server -y
You would then receive either MySQL 5.5, 5.6, or 5.7 depending on which distro you were using, but they were all versions of MySQL. However, with Debian 9, if you do this you will end up installing MariaDB 10.1 which is a drop in replacement for 5.6.
If you decide to just go with MariaDB 10.1 and are confused by the lack of a prompt to set the root password, just login with
sudo mysqland then use mysql command to set the password:
GRANT ALL ON *.* TO root@localhost identified by 'myawesomepassword';
Install MySQL 5.6, 5.7, or 5.8-preview
If you really want MySQL instead of MariaDB for whatever reason, you can execute the script below to install the version you want.
#!/bin/bash cd /tmp wget https://dev.mysql.com/get/mysql-apt-config_0.8.7-1_all.deb sudo dpkg -i mysql-apt-config_*.deb
At the popup-page, select the version you want.
Then use the following commands to install the MySQL server (it will install the version you selected).
sudo apt update sudo apt install mysql-community-server -y
References
- debian 8 解压安装mysql(版本5.7.19)
- 安装多个mysql实例(debian版本)
- MySQL最新版本 MySQL5.7.11 批量自动化一键式安装
- mysql 8.0.11压缩包版本安装教程
- 在 Debian 下安装 Apache,MySQL,PHP
- 六台Debian主机安装搭建Cloudera Manager 5和CDH5(版本5.9.0)大数据集群
- windos安装mysql(zip版本msql包) 初始化密码、新增用户
- 解压版MySQL安装(针对5.7以上版本)
- 在Debian下安装MySQL
- mysql免安装版本使用
- centOS 安装mysql5.5版本
- MySQL5.5.23数据库免安装版本在Windows系统上配置启动
- debian安装nginx+php(spawn-fcgi)+mysql
- windows server 2008 64位MySQL5.6免安装版本配置方法图解
- Linux下yum安装MySQL yum安装MySQL指定版本
- win7下安装解压版MySQL(版本:5.7.21)
- 重新安装mysql时,与之前版本冲突的处理问题
- windows 三步配置mysql免安装版本
- 腾讯云Debian系统安装Mysql使其支持远程连接
- 转发,windows下安装php、apache、mysql,并使得外网可访问内网的机器,搭建svn服务器提供版本控制