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 reinstall mysql in Ubuntu

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

How do I reinstall mysql in Ubuntu? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

First delete the mysql:

Sudo apt-get remove mysql-*

And then clean up the residual data.

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

It will pop up a dialog box, and you can choose yes.

Then install mysql

Sudo apt-get install mysql-client mysql-server

During installation, you will be prompted to set the root password. If you do not clean up the residual data during uninstallation, you will not be prompted to set the root password.

Check to see if mysql is running

Sudo service mysql status

It usually runs automatically after the installation is completed.

If it's not running, you can.

Sudo service mysql start

This is the answer to the question about how to reinstall mysql in Ubuntu. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.

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

  • How to use redis cache to query data in ssm project

    How to use redis cache to query data in a ssm project? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem. Xml configuration:

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

    12
    Report