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

Analysis of the advantages and disadvantages of MySQL stored procedures

MySQL version 5.0 began to support stored procedu...

Axios project with 77.9K GitHub repository: What are the things worth learning?

Table of contents Preface 1. Introduction to Axio...

Vuex implements a simple shopping cart

This article example shares the specific code of ...

How to reset your Linux password if lost

1. The startup menu is to move the cursor to the ...

Practice of using SuperMap in Vue

Table of contents Preface Related Materials Vue p...

Detailed explanation of mysql scheduled tasks (event events)

1. Brief introduction of the event An event is a ...

Summary of various forms of applying CSS styles in web pages

1. Inline style, placed in <body></body&g...

Two methods of MySql comma concatenation string query

The following two functions are used in the same ...

JavaScript web form function communication full of practical information

1. Introduction Earlier we talked about the front...

A little-known JS problem: [] == ![] is true, but {} == !{} is false

console.log( [] == ![] ) // true console.log( {} ...

Vue3.0 project construction and usage process

Table of contents 1. Project construction 2: Dire...

Implementation of fastdfs+nginx cluster construction

1. Introduction to fastdfs 1. What is fastdfs Fas...

Alibaba Cloud Centos7.3 installation mysql5.7.18 rpm installation tutorial

Uninstall MariaDB CentOS7 installs MariaDB instea...