SQL study Notes-SQL getting started, MySQL installation in Ubuntu _ MySQL-mysql tutorial

Source: Internet
Author: User
Tags sql tutorial
SQL study Notes-Getting Started with SQL, installing Ubuntu for MySQL in Ubuntu

BitsCN.com

SQL study Notes-SQL beginners, MySQL installation in Ubuntu

When I first started to learn SQL in Ubuntu, I started to get started with the itercast SQL tutorial.

The following is my personal record. please detour:

I,

Before installation, we can use the following command to check whether the mysql service is running through open port query.

After installation, you can also use this command to check whether the tool is running.

[Plain]

$ Netstat-tap | grep mysql

If it is running, you will see

[Plain]

Tcp 0 0 localhost: mysql *:*

II,

Use apt-get to install:

[Plain]

$ Sudo apt-get install mysql-server mysql-client

A password is required to be entered out of the window, which is the password of the root user of mysql.

III,

Go to mysql:

[Plain]

$ Mysql-u root-p

Enter the password to log in.

IV,

Switch the mysql service

[Plain]

Sudo start mysql

Sudo stop mysql

Mysql configuration file:

/Etc/mysql/my. cnf

You can modify the mysql port, database storage path, and other information.

BitsCN.com
Related Article

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.