MySQL Server Installation and command usage

Source: Internet
Author: User

This article is from the experimental building related parts of the documentation and experimental operation process.

First, MySQL Introduction

MySQL is a relational database management system that stores data in different tables rather than putting all of the data in a large warehouse, increasing speed and increasing flexibility. MySQL uses the SQL language is used to access the database of the most common standardized language, due to its small size, fast, low total cost of ownership, especially the open source code this feature, the general development of small and medium-sized web sites have chosen MySQL as the site database.

Second, the use of the command

1) command to start MySQL server: sudo service mysql start. Enter Command link server: mysql-u root (note There are no semicolons)

2) Input Query

Query current MySQL version number and current date: SELECT version (), current_date;

Query current MySQL version number and current time: SELECT version (), now ();

It is important to note that MySQL determines where the statement ends by looking for a terminating semicolon rather than the end of the input line. That is, there can be more than one statement in a row, as long as the separate statements are separated by semicolons, or a single statement can appear in multiple lines, as long as the end of the semicolon ends with the line.

3) If you do not want to execute the statement you are entering, you can enter \c cancellation.

In addition, the meaning table for the prompt is as follows:

MySQL Server Installation and command usage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.