Install and uninstall MySQL under Ubuntu14.04, and ubuntu14.04mysql

Source: Internet
Author: User

Install and uninstall MySQL under Ubuntu14.04, and ubuntu14.04mysql
Install MysQL

It is relatively simple to install MySQL in Ubuntu14.04. Just run the following command:


1. Enter sudo apt-get install mysql-server


2. After the execution continues, you need to set the MySQL password.



3. Enter the password again.


4. The installation is successful. Enter mysql-u root-p to log on.


MysQL can be used now.


Uninstall MysQL

1. sudo apt-get autoremove -- purge mysql-server-5.5

Uninstall the SDK based on your installed version.


2. The following command is also run during online query:

Sudo apt-get remove mysql-server
Sudo apt-get autoremove mysql-server
Sudo apt-get remove mysql-common (very important)

After I perform the first step and then execute the three items, these items no longer exist.


3. Clear residual data

Dpkg-l | grep ^ rc | awk '{print $2}' | sudo xargs dpkg-P

However, the following occurs after execution:


If the above error is reported, it indicates that there are no residual configuration files in your system.

In this case, you only need step 1 to complete the uninstallation task!








How does ubuntu uninstall mysql on the terminal?

Sudo apt-get purge mysql-client mysql-server or
Sudo aptitude remove mysql-server mysql-client
Which packages are available in Mysql,
1. if you install it from the source,
You can use dpkg-l mysql-server or
View dpkg-l mysql-client

2. for manual compilation and installation, you only need to delete the folder where your installation file is located.
Some other SQL storage files are stored in/var/mysql.

How does ubuntu uninstall mysql?

Uninstall MySQL or delete this data?
It's easy to uninstall MYsql.
First, manually uninstall MYSQL: uninstall MYSQL on the control panel, delete all related items of MYSQL under the installation drive letter, and delete all related items of MYSQL under Ctrl + F in regedit.
Third-party software, for example, 360 Uninstall.

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.