Install MySQL under Linux

Source: Internet
Author: User

For some friends, the installation of MySQL5.6 in the Ubuntu14.04 is always wrong, here I put the process of my installation to everyone to say:
If you are logged in Ubuntu is not the root account, then first switch to root, command sudo su root will appear after the password authentication, here is your ordinary user login password. Direct validation is possible.

First, when we install the software, update the Ubuntu data source:sudo apt-get Update ENTER after it will automatically update the data source, wait for the end of the next operation can be done.

Second, we first install the MySQL need to rely on:apt-get install mysql-client-core-5.6 and apt-get install mysql-client-5.6

Installation of MySQL:apt-get Install mysql-server-5.6, the installation process to enter the root password;

Iv. verifying that the original host is installed
Here is the main run of sudo netstat-tap | grep mysql command to see if there is a MySQL port, if not add sudo because the permissions can not be executed smoothly:

Netstat-tap | grep MySQL

If the installation succeeds, executing the above command will show:

TCP 0 0 localhost:mysql : LISTEN 6840/mysqld

Type a command to check whether MySQL is started:netstat-tap | grep mysql mysql monitor on localhost, stating that MySQL is already started.

Vi. log in to MySQL using the command line Mysql-u root-p

Finally, you'll be able to manipulate your database.

Install MySQL under Linux

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.