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.