Installing and uninstalling MySQL services under Windows

Source: Internet
Author: User
Tags mysql in mysql database

Install, uninstall MySQL service

Install MySQL Service

Create and edit a bat file with the following contents (E:\mysql\bin\mysqld-nt.exe for installation directory, fill in the actual situation)

@ECHO off

E:\mysql\bin\mysqld-nt.exe-install

net start MySQL

Uninstall MySQL Service

Create and edit a bat file with the following contents (E:\mysql\bin\mysqld-nt.exe for installation directory, fill in the actual situation)

@ECHO off

net stop MySQL

C:\mysql\bin\mysqld-nt.exe-remove

--------------------------------------------

MySQL can not start the problem. The specific performance is as follows: whether it is directly double-click Mysqld.exe or at the command prompt is not a response. (XP system)

Then try the Control Panel >>> admin tools >>> Services >>> MySQL method startup, pop-up prompt box to terminate the process unexpectedly. Depressed ...

Had to uninstall the MySQL reload, the result found that the problem was not resolved. Go and ask someone else to get the hint of reloading the system. Started to freak out ...

Well, the painful memories are here, now talk about how to solve.

The first is to uninstall the MySQL service, or even uninstall the MySQL program, the service still has the MySQL, the problem can not be solved. Suppose my MySQL is installed in C:\MYSQL and run mysqld-nt-remove at the command prompt C:\mysql\bin ( There are spaces in the middle), prompting the uninstall to succeed. Then uninstall MySQL in the Control Panel >>> Add or remove program, then reboot, then install MySQL run Mysqld.exe (Win2000 is Mysqld-nt.exe), The command prompt is flashed, so you can see the MySQL process in Task Manager, which means your MySQL is resurrected:

------------------------------------------------------------------

Install one of the common problems: Why is MySQL installation unsuccessful?

MySQL installation is not successful, generally because the server may have installed MySQL without a full uninstall, the specific uninstall method is as follows:

First step:

If you have a MySQL database installed on your system, confirm that it is already loaded in the system service: Open the Administrative Tools in Control Panel to see if the service has a "MYSQL" process and if it is stopped.

Step Two:

Please execute the "mysqld-nt-remove" command in DOS and remove it from the system service.

Step Three:

The MySQL system service was successfully deleted in DOS.

Fourth Step:

Next, you uninstall it in Add/Remove Programs in Control Panel.

Fifth Step:

Remove the C:\MYSQL folder from your system.

If you confirm that the operating environment described above has been completely removed. The system is still not available to install again. Please go to your C-drive letter. Verify that there are data directories c:\j2sdk1.4.1_03, C:\mysql,c:\resin, that are required to run. and the MYSQL service and RESIN service in the system service have been started. If the system is still not available, please contact the US Technology Service center. US Technology Service engineers will be in time, sincerely for you to solve the problems in the system.

Related Article

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.