Install and uninstall mysql service_mysql in windows

Source: Internet
Author: User
Install and uninstall mysql in windows

Install and uninstall the mysql service


Install mysql service

Create and edit a bat file with the following content, run it (e:/mysql/bin/mysqld-nt.exe is the installation directory, fill in as needed)

@ ECHO OFF

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

Net start mysql

Uninstall mysql service

Create and edit a bat file to execute the following (e:/mysql/bin/mysqld-nt.exe is the installation directory, fill in as needed)

@ ECHO OFF

Net stop mysql

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


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


MYSQL cannot be started. the specific performance is as follows: dig is a direct double-hitting mysqld.exe or the command prompt does not respond. (XP system)


Then, choose Control Panel> Management Tools> Services> mysql method to start. a prompt box is displayed, indicating that the process is terminated unexpectedly ......


I had to uninstall mysql for reinstallation, and found that the problem was not solved. I went to ask someone else to get a prompt to reinstall the system. I started to get crazy ......

Now, the painful memories are here. how can we solve them.


The first step is to uninstall the mysql service. otherwise, even if the mysql program is uninstalled, mysql is still in the service, and the problem cannot be solved. if my mysql is installed in C:/MYSQL and runs mysqld-nt-remove (with spaces in the middle) at the command prompt c:/mysql/bin, a message indicating that the uninstall is successful is displayed. then, uninstall mysqlin the Control Panel> add or delete the program, and then install mysqlto run mysqld.exe(mysqld-nt.exe in win2000). the command prompt box flashed through, so that you can see the mysql process in the task manager, that is to say, your mysql has been revived again :)


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


One of the following Frequently Asked Questions: Why does MYSQL installation fail?

The installation of MYSQL is not successful. it is generally because the server may have installed MYSQL but it has not been fully uninstalled. the specific uninstall method is as follows:


Step 1:


If the MYSQL database is installed in your system, check whether it has been loaded into the system service. open "management tools" on the "control panel" to check whether the "service" has a "MYSQL" process, if yes, stop it.

Step 2:


Run the "mysqld-nt-remove" command in DOS to delete it from the system service.


Step 3:


"MYSQL system service" is successfully deleted in DOS status.


Step 4:


Next, uninstall the programs in "add/delete programs" on the "control panel.


Step 5:


Delete the c:/MYSQL folder in your system.


If you confirm that all the running environments mentioned above have been completely deleted. Re-installation of the system is still unavailable. Go to your drive c. Check whether the required data directory c:/j2sdk1.4.1 _ 03, c:/mysql, c:/resin exists. The MYSQL and RESIN services in the system service have been started. If the system still fails to be used when the above conditions are met, contact the nxin technology service center. The service engineers of enxin technology will promptly and sincerely solve problems in the system for you.

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.