How to install MySQL database on Ubuntu

How to install MySQL database on Ubuntu

Ubuntu is a free and open source desktop PC operating system based on Linux. It is very suitable for Intel's ultrabook positioning and supports x86, 64-bit and PPC architectures. A relatively popular Linux operating system, which is not only simple and easy to use, but also has very good compatibility with Windows. So how to install mysql database in ubuntu?

There are two main ways to install MySQL in Ubuntu:

1. Open Ubuntu Software Center, search for mysql in the search box in the upper right corner, then select MySQL Server and click Install.

2. Use the command to install mysql. After all, the Ubuntu system is mainly based on commands.

Open the Ubuntu terminal and execute: sudo apt-get install mysql-server

Then you can see a series of execution processes and the installation will be completed after a while.

Next, enter mysql, just like cmd, mysql -h localhost - u root -p and then enter the sudo password.

This will enter the Ubuntu database, and the following operations are normal database operations.

Summarize

The above is the method of installing MySQL database on Ubuntu that I introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Install MySQL5.5 database in CentOS7 environment
  • Centos7 mysql database installation and configuration tutorial
  • Detailed tutorial on installing MySQL database in Linux environment
  • Detailed tutorial on installing MySQL 8.0.20 database on CentOS 7
  • Detailed tutorial on installing different (two) versions of MySQL database on Windows
  • Windows Server 2016 MySQL database installation and configuration detailed installation tutorial
  • Install two MySQL5.6.35 databases under win10
  • Introduction to MySQL database installation method and graphical management tool

<<:  Summary of 6 Linux log viewing methods

>>:  JavaScript to implement the web version of Gobang game

Recommend

Native JS realizes the special effect of spreading love by mouse sliding

This article shares with you a js special effect ...

JS implements simple calendar effect

This article shares the specific code of JS to ac...

What is COLLATE in MYSQL?

Preface Execute the show create table <tablena...

How to create a MySQL database and support Chinese characters

Let's first look at the MySQL official docume...

Solution to Nginx 500 Internal Server Error

Today, when I was using Nginx, a 500 error occurr...

How to implement scheduled backup of MySQL database

1. Create a shell script vim backupdb.sh Create t...

Complete step-by-step record of MySQL 8.0.26 installation and uninstallation

Table of contents Preface 1. Installation 1. Down...

Difference and implementation of JavaScript anti-shake and throttling

Table of contents 1. Anti-shake 2. Throttling 3. ...

MySQL multi-instance configuration application scenario

Table of contents MySQL multiple instances Multi-...

Brief analysis of mysql scheduled backup tasks

Introduction In a production environment, in orde...

Detailed explanation of CSS counter related attributes learning

The CSS counter attribute is supported by almost ...

Realize super cool water light effect based on canvas

This article example shares with you the specific...

Why MySQL database avoids NULL as much as possible

Many tables in MySQL contain columns that can be ...