MySQL Basics——Introduction, download, and installation of MySQL database [book at the end of the article]

  • About the author: A cloud computing network operation and maintenance personnel, sharing the technology and dry goods of network and operation and maintenance every day. 

  •  Motto: Keep your head down and hurry on your way, be respectful

  • Personal homepage: Homepage of Netdou

Table of contents

foreword

1. Database related concepts

1. What is a database

 2. What is a database management system

 3. What is SQL

4. Database market share

Two. mysql installation

1. Installation

1). Double-click the official installation package file

2). Follow the installation prompts to install

2. Configuration

1). On this computer, right click and select Properties

2). Click "Advanced System Settings" on the left and select Environment Variables

 3). Find the Path system variable, click "Edit"

4). Select "New" and add the bin directory under the MySQL Server installation directory to the environment variable

 3. Start stop

Recommended books in this issue

The latest version of Core Java, Volume II, is now available

The latest version of Core Java, Volume Ⅱ, is now on the market! Come see what important updates are available!

Recommended by 50 industry experts and technical media


foreword

This series will explain the basics, introduction, operation and maintenance of the MySQL database. This chapter will explain the introduction, download, installation, and maintenance of the MySQL database.


1. Database related concepts

Let's first explain three concepts: database, database management system, and SQL .

name

full name
Abbreviation
database
A warehouse for storing data, where data is stored in an organized manner
DataBase DB
database management
management system
large software for manipulating and managing databases
DataBase Management
System (DBMS)
SQL
A programming language for operating relational databases, which defines a set of unified standards for operating relational databases
Structured Query
Language (SQL)


1. What is a database

Database refers to a collection of data composed of computer systems and stored in it according to a specific data structure or an efficient data management method. Many types of data can be stored in the database, such as text, numbers, audio, video, images, etc., and these data are usually organized into tables (Table), and are accessed, modified and queried using SQL or other languages.


 2. What is a database management system

A Database Management System (DBMS) is a software tool used to create, modify, query, and manage databases. There can be many types of DBMS, the most common of which are relational database management systems (RDBMS) such as MySQL, Oracle, PostgreSQL, etc.


 3. What is SQL

SQL (Structured Query Language) is a standard programming language for managing relational databases. Through SQL, users can access and manipulate data stored in the database.


4. Database market share

The current market shares of mainstream relational database management systems are ranked as follows:

  • Oracle : a large fee-based database, a product of Oracle , is expensive.
  • MySQL : An open source and free small and medium-sized database. Later, Sun acquired MySQL , and Oracle acquired Sun. At present, Oracle has launched a paid version of MySQL , and also provides a free community version.
  • SQL Server : A fee-based medium-sized database launched by Microsoft , commonly used in languages ​​such as C# and .net .
  • PostgreSQL : Open source free small and medium database.
  • DB2 : IBM 's large-scale charging database product.
  • SQLLite : Embedded micro-database. The built-in database of Android uses this database.
  • MariaDB : Open source free small and medium database. It is another branch of the MySQL database, another derivative product, and has good compatibility with the MySQL database.

And no matter which relational database we use above, in the end, we use the SQL language for unified operations when we operate, because the SQL language we mentioned earlier is the unified . So even if we are learning MySQL now , if we go to the company and use other relational databases, such as: Oracle DB2 SQLServer , there is no need to worry , because the operation methods are the same.

Two. mysql installation

1. Installation

1). Double-click the official installation package file

2). Follow the installation prompts to install

Install the related components of MySQL, this process may take a few minutes, wait patiently.

==Enter the password of the root user in MySQL, be sure to remember the password==


2. Configuration

After installing MySQL, you need to configure environment variables so that you can connect to MySQL in any directory.

1). On this computer, right click and select Properties

2). Click "Advanced System Settings" on the left and select Environment Variables

 3). Find the Path system variable, click "Edit"

4). Select "New" and add the bin directory under the MySQL Server installation directory to the environment variable


 3. Start stop

After the MySQL installation is complete, the MySQL service will be automatically started when the system starts, so we don't need to start it manually.
Of course, you can also manually start and stop through commands, run cmd as an administrator , and enter the command line to execute the following commands:
net start mysql80
net stop mysql80

 Note: The above mysql80 is the system service name of mysql specified by default when we installed MySQL . It is not fixed. If it is not changed, the default is mysql80


Recommended books in this issue

Three books are presented in this issue: "Java Core Technology Volume II Advanced Features (12th Edition of the Original Book")

ways to obtain:

The top two with high-quality comments + likes will each get a copy!

Randomly select a good brother in the comment area to send a book!

Deadline : May 7 at 6:00 pm

Announcement time: May 7 at 6:30 pm

Since the birth of Java 28 years ago, this world-renowned Java classic book "Core Java" has been accompanied by the growth of Java all the way, and has been favored by millions of Java developers. It has become a best-selling Java classic book and has influenced several generations of technology. people.

The latest Chinese version of "Java Core Technology (12th Edition of the original book) has been fully revised to cover the new features of Java 17. The new version continues the fine tradition of the previous version, using hundreds of actual engineering cases to comprehensively and systematically explain the core concepts, syntax, important features, and development methods of the Java language.

The latest version of Core Java, Volume II, is now available

The father of Java also said earlier that developers should abandon JDK 8 as soon as possible, and can choose the long-term support version of JDK 17. The 12th edition of the latest edition of "Core Java", which is comprehensively updated for the new features of Java 17, has caused a sensation since it was released in May last year. It has received high attention from tens of thousands of readers, and everyone left messages looking forward to the release of Volume II!

For experienced programmers, if you want to write robust code for practical applications, "Java Core Technology" is definitely an industry-leading, concise book. Now, it's finally here! "Java Core Technology Volume II Advanced Features (12th Edition of the original book)" is now on the market, and all major channels are in stock.

 

Volume II has been revised for new features and improvements in Java 17. As before, all chapters have been fully updated to remove obsolete content and discuss various new APIs in detail.

The latest version of Core Java, Volume Ⅱ, is now on the market! Come see what important updates are available!

Recommended by 50 industry experts and technical media


Creation is not easy, please pay attention, like, collect, thank you~   

Guess you like

Origin blog.csdn.net/yj11290301/article/details/130499239