Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install mysql in Ubuntu14.04

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Friends who have come into contact with MySQL know that installing MySQL under Windows is a very big thing, but it is much easier to install MySQL in other Linux systems such as Ubuntu. The specific tutorials are as follows.

1. Enter the MySQL installation command "sudo apt-get install mysql-server" in the command line of Ubuntu, as shown in the following figure.

2. MySQL installation is in progress, waiting for the installation to be completed.

3. If you have previously installed MySQL, if you encounter a new version of MySQL, you will need to configure it, as shown in the following figure.

If you do not set a new password here, the password will be the same as the previous MySQL; if you want to set a new password, just enter the new password.

4. Reset the new password here, and then pop up a window to enter the new password again, as shown in the following figure. When the settings are complete, click "ok".

5. Then proceed according to the procedure, as shown in the following figure.

6. Wait for the MySQL installation to complete, as shown in the following figure.

7. Use the command: ps aux | grep mysqld at this time to check whether mysql has been started.

You can see that mysql has been started, and on the left you can see that the process number of mysql is 6391.

8. After mysql starts, you can enter the command on the command line: mysql-u root-p, and then enter the previously set password to enter the MySQL database.

9. Then you can use MySQL normally, and add, delete, modify, query and other operations can be carried out normally, as shown in the following figure.

10. If you want to exit the MySQL database, type "exit" or "quit" directly, as shown in the following figure.

At this point, the installation of MySQL in Ubuntu has been completed, do friends think it is easier to install MySQL than under Windows?

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report