Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install mysql in debian

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces debian how to install mysql, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Debian install mysql method: 1, download and install Mysql APT Repository;2, directly through the command "apt-get install mysql-server" installation can be.

The operating environment of this paper: debian10 system, mysql8.0, Dell G3.

Debian10 uses MariaDB and does not have mysql in APT's package repository

It is recommended to use Mysql APT Repository when you download (https://dev.mysql.com/downloads/) MySQL Community Server here and then select Debian, so we download and install Mysql APT Repository to update APT Repository and then use apt-get to install it.

Download and install Mysql APT Repository

Apt-get install. / Downloads/mysql-apt-config_0.8.14-1_all.deb

The following interface appears and you can see

Mysql server default mysql-8.0 version

Tools and Connectors default enabled

Preview Packages default Disabled

Here, directly install all the default installation and directly select ok.

If you want to install 5.7, you can select another version in the first step, as shown in the following figure.

Apt-get update can see that there is already mysql.

Just install apt-get install mysql-server directly (you can see from the figure below that what is actually installed is community server)

The root password entry setting will appear.

Then there will be a password security authentication option to choose the recommended strong authentication method.

And then you can go into mysql.

Execute mysql_secure_installation to make some security settings

We all install casually and learn the basic choice of mysql. Just choose n.

Dpkg-reconfigure mysql-apt-config can go to the first step again to select and update Repository.

After the installation, you can see what mysql has been installed, and you can see that client has also been installed.

Thank you for reading this article carefully. I hope the article "how to install debian mysql" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report