Ubuntu install MySQL

Source: Internet
Author: User

Ubuntu install MySQL

Girlfriend to do Linux level three project, but did not install a good night MySQL, I know she does not want to disturb me, do not want to trouble me. For her this kind of kindness sincerely feel happy, she must be able to enter the name of the enterprise, at least do not understand the determination to not sleep is worthy of praise.


We installed on Ubuntu only need three command on the line, because at that time I installed the relatively hasty, so did not come anxious, everyone forgive ha


1 sudo apt-get install mysql-server

After executing the command, he will download the source, it may not be successful for the first time, but once again, no problem, in the middle may want to determine the input of a Y, but also enter a root password.

2 sudo apt-get install mysql-client

Seems to remember that I do not remember, the implementation of the line

3 sudo apt-get install Libmysqlclient-dev

Proceed until the installation is complete.


Let's sign in.

Using the command mysql-u root-p

Enter password

Then enter the MySQL command show databases;

Note the semicolon, if there is no mistake, OK.

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| Information_schema |
| MySQL |
| Performance_schema |
+--------------------+
3 Rows in Set (0.00 sec)

Thanks, girlfriend.




Ubuntu install 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.