MySQL service installation and command usage

Source: Internet
Author: User

1. Installation

If installed, the online installation can

Install Mysql-server mysql-client

2. Start the server

sudo service MySQL start

3. Log in to MySQL (-U on behalf of user username, log in as root)

Mysql-u Root

4. Exit the MySQL Service

Quit

5. Query version

Select version ()

6. What the prompt means

1 . Wait for the semicolon; MySQL > Select User ()        -2. Wait for quotation marks 'mysql>select * from family where name ='  and<        '>3. Wait for double quotes "Mysql>select * from family WHERE name = "Smith and age <30        " > What should I do if I go to this step? 1. Complete the completion 2. Enter command \c to cancel command

MySQL service 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.