MySQL 卸载 XAMPP 及其服务

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14842494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 16:32:52  来源:igfitidea点击:

Uninstalling XAMPP and its services

mysqlservicexamppuninstall

提问by user2066359

I have installed xampp while port 80 wasn't free. As a result one of the services wasn't able to run. Then I tried to reinstall the program as I thought it would replace any services that I had already installed. I ended up with having the other port being used from the previous MySQL service that had been downloaded when I firstly installed XAMPP.

我已经安装了 xampp,而 80 端口不是免费的。结果其中一项服务无法运行。然后我尝试重新安装该程序,因为我认为它会替换我已经安装的任何服务。我最终使用了以前的 MySQL 服务的另一个端口,该服务是在我第一次安装 XAMPP 时下载的。

I decided to uninstall xampp completely and reinstall it from the beginning. I've uninstalled XAMPP successfully, however when I check my program files the MySQL service is still there. I tried to delete it along with the other files but it says that I cannot complete the action because MySQL is in use.

我决定完全卸载 xampp 并从头开始重新安装它。我已经成功卸载了 XAMPP,但是当我检查我的程序文件时,MySQL 服务仍然存在。我试图将它与其他文件一起删除,但它说我无法完成该操作,因为 MySQL 正在使用中。

How do I delete MySQL so that I can download XAMPP again from the beginning without any problems?

如何删除 MySQL 以便我可以从头开始再次下载 XAMPP 而不会出现任何问题?

回答by Dr. Nitin Reddy Katkam

To stop the Windows services, go to Start, Run, and type services.msc . Then, locate the Apache and MySQL services and stop them. If the XAMPP Control Panel is running close it.

要停止 Windows 服务,请转到“开始”、“运行”,然后键入 services.msc 。然后,找到 Apache 和 MySQL 服务并停止它们。如果 XAMPP 控制面板正在运行,请关闭它。

To uninstall the Apache service, open a Command Prompt window with administrative privileges and execute the command:

要卸载 Apache 服务,请使用管理权限打开命令提示符窗口并执行以下命令:

C:\xampp\apache\bin\httpd -k uninstall

C:\xampp\apache\bin\httpd -k 卸载

To uninstall the MySQL service, execute the command:

要卸载 MySQL 服务,请执行以下命令:

sc delete mysql

sc 删除 mysql

If you used the ZIP archive to get XAMPP, you should be able to simply delete the XAMPP directory. If you used the installer, uninstall XAMPP from Programs in the Control Panel.

如果您使用 ZIP 存档来获取 XAMPP,您应该能够简单地删除 XAMPP 目录。如果您使用了安装程序,请从控制面板的程序中卸载 XAMPP。

回答by Hyman

If MySQL is running, you can access it via the command line interface:

如果 MySQL 正在运行,您可以通过命令行界面访问它:

Start -> Type "Cmd" in the Search box -> click on program(Windows 7)

Start -> Type "Cmd" in the Search box -> click on program(Windows 7的)

Then in the command window you can use MySQL commands. If you want to manage MySQL databases via a graphic UIyou have to use phpMyAdmin, which ships with XAMPP.

然后在命令窗口中您可以使用 MySQL 命令。如果您想通过图形 UI管理 MySQL 数据库,您必须使用 XAMPP 附带的 phpMyAdmin。

To Delete MySQL, first stop the windows service (if it's actually running as a service). You can view the running services by opening the management console:

要删除 MySQL,首先停止 windows 服务(如果它实际上是作为服务运行的)。您可以通过打开管理控制台查看正在运行的服务:

Start -> Type "View Local Services" in the search box -> Click on the program

You can also view the services via the control panel. Find the MySQL service in the list and disable it, you should then be able to delete the program

您还可以通过控制面板查看服务。在列表中找到 MySQL 服务并禁用它,然后您应该可以删除该程序

If MySQL isn't running as a service but you still can't delete it you can either shut it down via the command line: mysql> quitor by killing the task in the windows task manager.

如果 MySQL 没有作为服务运行,但您仍然无法删除它,您可以通过命令行将其关闭:mysql> quit或通过在 Windows 任务管理器中终止任务。

回答by Magican-Pc-Demon

To delete the whole Xammpp on your computer you get probably an error that not all the files can't be deleted. To delete the files without any problems go to task manager -> services -> services (with admin rights). Once you are their go and find mysql service and the Apache service. Stop those two servers and you can delete the other files at your xampp to get xampp deleted.

要删除计算机上的整个 Xammpp,您可能会收到一个错误,即并非所有文件都无法删除。要毫无问题地删除文件,请转到任务管理器 -> 服务 -> 服务(具有管理员权限)。一旦你找到了 mysql 服务和 Apache 服务。停止这两个服务器,您可以删除 xampp 中的其他文件以删除 xampp。

回答by Joshua Egwuda

For you to get rid of the xamppfolder in your (c:) drive, Go to Start, type msconfigin the search bar and enter. In the start up program, disable mysqlservices and the Apacheprogram. Restart your computer.you are now good to go.

要删除xampp(c:) 驱动器中的文件夹,请转到“开始”,msconfig在搜索栏中键入并输入。在启动程序中,禁用mysql服务和Apache程序。重新启动您的计算机。您现在可以开始了。