Detailed explanation of installing and completely uninstalling mysql with apt-get under Ubuntu

Detailed explanation of installing and completely uninstalling mysql with apt-get under Ubuntu

1. Install mysql:

udo apt-get install mysql-server
udo apt-get install mysql-client
udo apt-get install php5-mysql (used to connect php and mysql)

Check if mysql is running

aux | grep mysql

Startup Command

/etc/init.d/mysql start

2. Delete mysql

Execute the following commands in order

udo apt-get autoremove --purge mysql-server-5.0
udo apt-get remove mysql-server
udo apt-get autoremove mysql-server
udo apt-get remove mysql-common

Clean up residual data

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

Summarize

The above is the detailed introduction of how to install and completely uninstall MySQL using apt-get under Ubuntu. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • How to install and uninstall MySQL 5.7.11 on Mac
  • How to install and uninstall MySQL service under Windows (MySQL 5.6 zip decompression version installation tutorial)
  • MySQL uninstall and install graphic tutorial under Linux
  • Installation and uninstallation of MySQL 5.7 decompressed version and summary of common problems
  • Ubuntu 16.04.1 MySQL installation and uninstallation graphic tutorial
  • Detailed tutorial on MySql installation and uninstallation
  • If MYSQL is not completely uninstalled, its installation will fail.
  • Detailed installation and uninstallation tutorial for MySQL 8.0.12
  • Complete step-by-step record of MySQL 8.0.26 installation and uninstallation

<<:  Docker installs the official Redis image and enables password authentication

>>:  How to use CocosCreator object pool

Recommend

Solve the problem of specifying udp port number in docker

When Docker starts a container, it specifies the ...

WeChat applet implements the Record function

This article shares the specific code for the WeC...

Vue+Element realizes paging effect

This article example shares the specific code of ...

Node.js uses express-fileupload middleware to upload files

Table of contents Initialize the project Writing ...

Building a selenium distributed environment based on docker

1. Download the image docker pull selenium/hub do...

Vue routing returns the operation method of restoring page status

Route parameters, route navigation guards: retain...

How to reduce memory usage and CPU usage of web pages

Some web pages may not look large but may be very...

Implementation of waterfall layout in uni-app project

GitHub address, you can star it if you like it Pl...

mysql 5.7.11 winx64 initial password change

Download the compressed version of MySQL-5.7.11-w...

Vue integrates Tencent TIM instant messaging

This article mainly introduces how to integrate T...

Use of MySQL trigger

Table of contents 1. Trigger Introduction 1. What...

Html and CSS Basics (Must Read)

(1) HTML: HyperText Markup Language, which mainly...