Using MySQL in Linux

Source: Internet
Author: User
Tags mysql in

One.

1. Check if MySQL is installed on the Linux system and the command is:

sudo service MySQL start

If the mysql:unrecognized service is indicated, there is no MySQL in the system and needs to be installed.

2.Ubuntu Linux installation configuration mysql: The simplest way to install MySQL on Ubuntu is to install it online

The command is: sudo apt-get install mysql-server #安装MySQL服务端, core program

sudo apt-get install mysql-client #安装MySQL客户端

During installation, you will be prompted to confirm Yes, set the root user password (can be modified later), etc.

After the installation is complete, verify that the command is installed successfully: sudo netstat-tap | grep MySQL

3. After the installation is successful, you can modify the MySQL configuration file (my.cnf) with a gedit according to your needs, the command is:

sudo gedit/etc/mysql/my.cnf

At this point, MySQL in Linux has been installed and configured to complete.

Two.

1. Turn on MySQL

Start Mysql:sudo service MySQL start

Login with root: Mysql-u root-p

2. Other operational commands see: http://www.cnblogs.com/zhou0000/p/8287520.html

Ps:1. The basic operation commands for MySQL in Windows and Linux are generally no different.

2. Note that the semicolon is written at the end of each statement;

Using MySQL in Linux

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.