Install MySQL on Ubuntu

Source: Internet
Author: User

  1. Open "Terminal Window", enter "sudo apt-get install mysql-server mysql-client"-Enter "Y"--and return to "Package Setup Dialog" Enter the password for the "root" user in MySQL--enter and lose the password again---Enter, the installation is complete.



  2. Dependencies are not installed if the following conditions are present.

  3. Per-Install dependency

    sudo apt-get install-f

  4. Remember: Do not forget to enter the MySQL password on the following page:




Second, login MySQL

1. Log in to MySQL database by the following command:


Mysql-u root-p

Enter Password: root


2, and then through Show Databases ; You can view the current database


3. We choose the MySQL database to do the next step, using the use database name      command,



4. Display the current database form: Show Tables  



From for notes (Wiz)

Install MySQL on Ubuntu

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.