2016030205-ubuntu installing MySQL

Source: Internet
Author: User

  Install MySQL on Ubuntu

  1. Check if MySQL is installed on Ubuntu

sudo netstat-tap | grep MySQL

  

MySQL is not installed on this machine

  2. Install MySQL server side and client

Command: sudo apt-get install mysql-server mysql-client

  

During installation, you will be prompted to set the password for the database root user, not the Ubuntu administrator password

  

  

Indicates the installation is complete!

We are verifying that the machine has MySQL installed, the result is as follows

  

  

  3. Log in to MySQL for testing

  

Enter the command mysql-u root-p, prompt for password, u to choose Login Username,-p indicates login user password

Indicates that we have entered MySQL.

  

  4. Using SQL for validation

Command: show databases;

  

  

Summary: Just use to download mysql when there is a network, and compile MySQL for installation, here is not introduced. This approach is the simplest way.

2016030205-ubuntu installing MySQL

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.